133 #ifndef OPENTXS_CORE_SCRIPT_OTSCRIPTABLE_HPP
134 #define OPENTXS_CORE_SCRIPT_OTSCRIPTABLE_HPP
136 #include "../OTContract.hpp"
146 class OTPartyAccount;
150 typedef std::map<std::string, OTBylaw*>
mapOfBylaws;
247 EXPORT
virtual void SetDisplayLabel(
const std::string* pstrLabel =
nullptr);
271 OTAgent** ppAgent =
nullptr)
const;
299 mapOfNyms* pmap_ALREADY_LOADED =
nullptr)
const;
317 mapOfNyms* pmap_ALREADY_LOADED =
nullptr,
327 bool bBurnTransNo =
false);
342 bool bBurnTransNo =
false);
393 const OTIdentifier& theServerID,
const int64_t& lNewTransactionNumber,
408 std::string str_clause_name);
450 #endif // OPENTXS_CORE_SCRIPT_OTSCRIPTABLE_HPP
OTParty * FindPartyBasedOnNymIDAsAgent(const OTIdentifier &theNymID, OTAgent **ppAgent=nullptr) const
EXPORT bool CanExecuteClause(std::string str_party_name, std::string str_clause_name)
static bool ValidateName(std::string str_name)
virtual EXPORT bool AddParty(OTParty &theParty)
EXPORT bool SendNoticeToAllParties(bool bSuccessMsg, OTPseudonym &theServerNym, const OTIdentifier &theServerID, const int64_t &lNewTransactionNumber, const OTString &strReference, OTString *pstrNote=nullptr, OTString *pstrAttachment=nullptr, OTPseudonym *pActualNym=nullptr) const
EXPORT bool VerifyThisAgainstAllPartiesSignedCopies()
EXPORT OTParty * FindPartyBasedOnNymAsAuthAgent(OTPseudonym &theNym, OTAgent **ppAgent=nullptr) const
static EXPORT OTScriptable * InstantiateScriptable(const OTString &strInput)
void ClearTemporaryPointers()
EXPORT bool AllPartiesHaveSupposedlyConfirmed()
virtual bool SaveContractWallet(std::ofstream &ofs) const
EXPORT OTBylaw * GetBylaw(std::string str_bylaw_name) const
std::map< std::string, OTVariable * > mapOfVariables
virtual EXPORT void CalculateContractID(OTIdentifier &newID) const
virtual EXPORT void RegisterOTNativeCallsWithScript(OTScript &theScript)
EXPORT int32_t GetCountTransNumsNeededForAgent(std::string str_agent_name) const
std::map< std::string, OTPseudonym * > mapOfNyms
virtual EXPORT bool Compare(OTScriptable &rhs) const
std::map< std::string, OTClause * > mapOfClauses
static std::string GetTime()
bool VerifyPartyAcctAuthorization(OTPartyAccount &thePartyAcct, OTPseudonym &theSignerNym, const OTString &strServerID, bool bBurnTransNo=false)
mapOfParties m_mapParties
EXPORT OTClause * GetClause(std::string str_clause_name) const
int32_t GetBylawCount() const
void Release_Scriptable()
bool ExecuteCallback(OTClause &theCallbackClause, mapOfVariables &theParameters, OTVariable &varReturnVal)
int32_t GetPartyCount() const
bool VerifyPartyAuthorization(OTParty &theParty, OTPseudonym &theSignerNym, const OTString &strServerID, mapOfNyms *pmap_ALREADY_LOADED=nullptr, mapOfNyms *pmap_NEWLY_LOADED=nullptr, bool bBurnTransNo=false)
void UpdateContentsToString(OTString &strAppend, bool bCalculatingID) const
OTParty * FindPartyBasedOnAccountID(const OTIdentifier &theAcctID, OTPartyAccount **ppPartyAccount=nullptr) const
virtual EXPORT void SetDisplayLabel(const std::string *pstrLabel=nullptr)
void RetrieveNymPointers(mapOfNyms &map_Nyms_Already_Loaded)
OTParty * FindPartyBasedOnAccount(OTAccount &theAccount, OTPartyAccount **ppPartyAccount=nullptr) const
OTClause * GetCallback(std::string str_CallbackName)
OTVariable * GetVariable(std::string str_VarName)
EXPORT OTParty * GetParty(std::string str_party_name) const
virtual void UpdateContents()
virtual int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
virtual EXPORT bool VerifyNymAsAgent(OTPseudonym &theNym, OTPseudonym &theSignerNym, mapOfNyms *pmap_ALREADY_LOADED=nullptr) const
virtual EXPORT bool VerifyNymAsAgentForAccount(OTPseudonym &theNym, OTAccount &theAccount) const
bool IsDirtyImportant() const
EXPORT OTParty * FindPartyBasedOnNymAsAgent(OTPseudonym &theNym, OTAgent **ppAgent=nullptr) const
OTAgent * GetAgent(std::string str_agent_name) const
EXPORT OTParty * GetPartyByIndex(int32_t nIndex) const
bool GetHooks(std::string str_HookName, mapOfClauses &theResults)
OTParty * FindPartyBasedOnNymIDAsAuthAgent(const OTIdentifier &theNymID, OTAgent **ppAgent=nullptr) const
OTPartyAccount * GetPartyAccountByID(const OTIdentifier &theAcctID) const
EXPORT OTBylaw * GetBylawByIndex(int32_t nIndex) const
OTPartyAccount * GetPartyAccount(std::string str_acct_name) const
virtual EXPORT bool ConfirmParty(OTParty &theParty)
virtual EXPORT bool AddBylaw(OTBylaw &theBylaw)
std::map< std::string, OTBylaw * > mapOfBylaws
std::map< std::string, OTParty * > mapOfParties