133 #ifndef OPENTXS_CORE_OTCONTRACT_HPP
134 #define OPENTXS_CORE_OTCONTRACT_HPP
144 template <
class char_type,
class super_
class>
146 class IFileReadCallBack;
156 class OTAsymmetricKey;
157 class OTPasswordData;
161 typedef std::map<std::string, OTPseudonym*>
mapOfNyms;
257 const char*& szName,
OTString::Map* pmapExtraVars =
nullptr);
399 EXPORT
bool LoadContract(
const char* szFoldername,
const char* szFilename);
435 const char* szFilename);
453 EXPORT
virtual bool SaveContents(std::ofstream& ofs)
const;
484 const char* szFoldername,
485 const char* szFilename,
541 const char* szFoldername,
542 const char* szFilename,
557 #endif // OPENTXS_CORE_OTCONTRACT_HPP
virtual EXPORT void CreateContents()
std::map< std::string, std::string > Map
IIrrXMLReader< char, IXMLBase > IrrXMLReader
EXPORT void CreateInnerContents()
static EXPORT bool DearmorAndTrim(const OTString &strInput, OTString &strOutput, OTString &strFirstLine)
virtual EXPORT bool VerifyContractID() const
virtual EXPORT bool DisplayStatistics(OTString &strContents) const
EXPORT bool SaveContract()
EXPORT void GetFilename(OTString &strFilename) const
EXPORT bool ParseRawFile()
EXPORT void GetName(OTString &strName) const
virtual EXPORT bool CreateContract(const OTString &strContract, const OTPseudonym &theSigner)
std::map< std::string, OTPseudonym * > mapOfNyms
EXPORT bool SaveContractRaw(OTString &strOutput) const
EXPORT bool VerifyWithKey(const OTAsymmetricKey &theKey, const OTPasswordData *pPWData=nullptr) const
EXPORT void Release_Contract()
EXPORT void ReleaseSignatures()
EXPORT bool SignWithKey(const OTAsymmetricKey &theKey, const OTPasswordData *pPWData=nullptr)
listOfSignatures m_listSignatures
EXPORT const OTPseudonym * GetContractPublicNym() const
bool LoadContractRawFile()
void SetIdentifier(const OTIdentifier &theID)
OTString::Map m_mapConditions
OTString m_strSigHashType
OTString m_strEntityShortName
static EXPORT bool LoadEncodedTextField(irr::io::IrrXMLReader *&xml, OTASCIIArmor &ascOutput)
static bool AddBookendsAroundContent(OTString &strOutput, const OTString &strContents, const OTString &strContractType, const OTString &strHashType, const listOfSignatures &listSignatures)
EXPORT bool SignContractAuthent(const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr)
OTString m_strContractType
virtual EXPORT bool LoadContract()
virtual EXPORT ~OTContract()
static bool SkipToTextField(irr::io::IrrXMLReader *&xml)
virtual EXPORT void GetIdentifier(OTIdentifier &theIdentifier) const
OTString m_strEntityLongName
virtual EXPORT void UpdateContents()
OTStringXML m_xmlUnsigned
EXPORT const char * Get() const
virtual EXPORT bool SignContract(const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr)
static bool SkipAfterLoadingField(irr::io::IrrXMLReader *&xml)
static bool SkipToElement(irr::io::IrrXMLReader *&xml)
virtual EXPORT int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
EXPORT const OTAsymmetricKey * GetContractPublicKey() const
EXPORT void GetFoldername(OTString &strFoldername) const
EXPORT bool InsertNym(const OTString &strKeyName, const OTString &strKeyValue)
virtual EXPORT void Release()
virtual EXPORT bool VerifySignature(const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) const
virtual EXPORT bool VerifyContract()
OTString m_strEntityEmail
virtual EXPORT bool VerifySigAuthent(const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) const
EXPORT bool LoadContractFromString(const OTString &theStr)
virtual EXPORT bool SaveContents(std::ofstream &ofs) const
virtual EXPORT void CalculateContractID(OTIdentifier &newID) const
const char * GetHashType() const
static EXPORT bool SignFlatText(OTString &strFlatText, const OTString &strContractType, const OTPseudonym &theSigner, OTString &strOutput)
EXPORT bool SaveToContractFolder()
std::list< OTSignature * > listOfSignatures
virtual bool SaveContractWallet(std::ofstream &ofs) const =0
EXPORT void SetName(const OTString &strName)
EXPORT bool RewriteContract(OTString &strOutput) const
static bool LoadEncodedTextFieldByName(irr::io::IrrXMLReader *&xml, OTASCIIArmor &ascOutput, const char *&szName, OTString::Map *pmapExtraVars=nullptr)