142 #include <irrxml/irrXML.hpp>
155 :
OTContract(name, foldername, filename, strID)
165 int32_t& nPort)
const
197 strContents.
Concatenate(
"<notaryProvider name=\"%s\"\n"
198 " serverID=\"%s\" />\n\n",
231 " serverURL=\"%s\"/>\n\n",
253 int32_t nReturnVal = 0;
264 if (nReturnVal)
return nReturnVal;
266 if (!strcmp(
"notaryProviderContract", xml->getNodeName())) {
270 "===> Loading XML portion of server contract into memory "
273 <<
"\nContract version: " <<
m_strVersion <<
"\n----------\n";
276 else if (!strcmp(
"notaryServer", xml->getNodeName())) {
278 m_nPort = atoi(xml->getAttributeValue(
"port"));
279 m_strURL = xml->getAttributeValue(
"URL");
282 "Notary Server connection info:\n --- Hostname: "
284 <<
"\n --- URL:" << m_strURL <<
"\n\n";
EXPORT bool GetConnectInfo(OTString &strHostname, int32_t &nPort) const
EXPORT void CreateInnerContents()
EXPORT OTServerContract()
EXPORT uint32_t GetLength() const
EXPORT void Concatenate(const char *arg,...)
virtual bool SaveContractWallet(OTString &strContents) const
virtual EXPORT ~OTServerContract()
EXPORT bool Exists() const
EXPORT bool SetString(const OTString &theData, bool bLineBreaks=true)
OTString m_strEntityShortName
virtual bool DisplayStatistics(OTString &strContents) const
virtual int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
virtual EXPORT void CreateContents()
OTString m_strEntityLongName
OTStringXML m_xmlUnsigned
OTLOG_IMPORT OTLogStream otWarn
EXPORT const char * Get() const
virtual EXPORT int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
OTString m_strEntityEmail
virtual EXPORT void Release()