Open-Transactions
0.93.0-ge03d287
|
#include <OTParty.hpp>
Public Member Functions | |
OTParty () | |
EXPORT | OTParty (const char *szName, bool bIsOwnerNym, const char *szOwnerID, const char *szAuthAgent, bool bCreateAgent=false) |
EXPORT | OTParty (std::string str_PartyName, OTPseudonym &theNym, std::string str_agent_name, OTAccount *pAccount=nullptr, const std::string *pstr_account_name=nullptr, int64_t lClosingTransNo=0) |
virtual | ~OTParty () |
void | CleanupAgents () |
void | CleanupAccounts () |
bool | Compare (const OTParty &rhs) const |
void | Serialize (OTString &strAppend, bool bCalculatingID=false, bool bSpecifyAssetID=false, bool bSpecifyParties=false) const |
void | ClearTemporaryPointers () |
bool | SignContract (OTContract &theInput) const |
bool | HasTransactionNum (const int64_t &lInput) const |
void | GetAllTransactionNumbers (OTNumList &numlistOutput) const |
bool | ReserveTransNumsForConfirm (const OTString &strServerID) |
void | HarvestAllTransactionNumbers (const OTString &strServerID) |
void | HarvestOpeningNumber (const OTString &strServerID) |
void | HarvestOpeningNumber (OTAgent &theAgent, const OTString &strServerID) |
void | HarvestOpeningNumber (OTPseudonym &theNym, const OTString &strServerID) |
void | CloseoutOpeningNumber (const OTString &strServerID, bool bSave=false, OTPseudonym *pSignerNym=nullptr) |
void | HarvestClosingNumbers (const OTString &strServerID, bool bSave=false, OTPseudonym *pSignerNym=nullptr) |
void | HarvestClosingNumbers (OTAgent &theAgent, const OTString &strServerID) |
void | HarvestClosingNumbers (OTPseudonym &theNym, const OTString &strServerID) |
bool | DropFinalReceiptToNymboxes (const int64_t &lNewTransactionNumber, const OTString &strOrigCronItem, OTString *pstrNote=nullptr, OTString *pstrAttachment=nullptr, OTPseudonym *pActualNym=nullptr) |
bool | DropFinalReceiptToInboxes (mapOfNyms *pNymMap, const OTString &strServerID, OTPseudonym &theServerNym, const int64_t &lNewTransactionNumber, const OTString &strOrigCronItem, OTString *pstrNote=nullptr, OTString *pstrAttachment=nullptr) |
bool | SendNoticeToParty (bool bSuccessMsg, OTPseudonym &theServerNym, const OTIdentifier &theServerID, const int64_t &lNewTransactionNumber, const OTString &strReference, OTString *pstrNote=nullptr, OTString *pstrAttachment=nullptr, OTPseudonym *pActualNym=nullptr) |
OTScriptable * | GetOwnerAgreement () |
void | SetOwnerAgreement (OTScriptable &theOwner) |
void | SetMySignedCopy (const OTString &strMyCopy) |
const OTString & | GetMySignedCopy () |
int64_t | GetOpeningTransNo () const |
void | SetOpeningTransNo (const int64_t &theNumber) |
int64_t | GetClosingTransNo (std::string str_for_acct_name) const |
EXPORT std::string | GetPartyName (bool *pBoolSuccess=nullptr) const |
bool | SetPartyName (const std::string &str_party_name_input) |
bool | IsNym () const |
bool | IsEntity () const |
std::string | GetNymID (bool *pBoolSuccess=nullptr) const |
std::string | GetEntityID (bool *pBoolSuccess=nullptr) const |
EXPORT std::string | GetPartyID (bool *pBoolSuccess=nullptr) const |
bool | HasActiveAgent () const |
bool | AddAgent (OTAgent &theAgent) |
int32_t | GetAgentCount () const |
EXPORT OTAgent * | GetAgent (const std::string &str_agent_name) const |
EXPORT OTAgent * | GetAgentByIndex (int32_t nIndex) const |
const std::string & | GetAuthorizingAgentName () const |
void | SetAuthorizingAgentName (std::string str_agent_name) |
bool | HasAgent (OTPseudonym &theNym, OTAgent **ppAgent=nullptr) const |
bool | HasAgentByNymID (const OTIdentifier &theNymID, OTAgent **ppAgent=nullptr) const |
bool | HasAuthorizingAgent (OTPseudonym &theNym, OTAgent **ppAgent=nullptr) const |
bool | HasAuthorizingAgentByNymID (const OTIdentifier &theNymID, OTAgent **ppAgent=nullptr) const |
OTPseudonym * | LoadAuthorizingAgentNym (OTPseudonym &theSignerNym, OTAgent **ppAgent=nullptr) |
void | RetrieveNymPointers (mapOfNyms &map_Nyms_Already_Loaded) |
bool | AddAccount (OTPartyAccount &thePartyAcct) |
EXPORT bool | AddAccount (const OTString &strAgentName, const OTString &strName, const OTString &strAcctID, const OTString &strAssetTypeID, int64_t lClosingTransNo) |
EXPORT bool | AddAccount (const OTString &strAgentName, const char *szAcctName, OTAccount &theAccount, int64_t lClosingTransNo) |
int32_t | GetAccountCount () const |
int32_t | GetAccountCount (std::string str_agent_name) const |
EXPORT OTPartyAccount * | GetAccount (const std::string &str_acct_name) const |
EXPORT OTPartyAccount * | GetAccountByIndex (int32_t nIndex) |
EXPORT OTPartyAccount * | GetAccountByAgent (const std::string &str_agent_name) |
EXPORT OTPartyAccount * | GetAccountByID (const OTIdentifier &theAcctID) const |
bool | HasAccount (OTAccount &theAccount, OTPartyAccount **ppPartyAccount=nullptr) const |
bool | HasAccountByID (const OTIdentifier &theAcctID, OTPartyAccount **ppPartyAccount=nullptr) const |
bool | VerifyOwnershipOfAccount (const OTAccount &theAccount) const |
bool | VerifyAccountsWithTheirAgents (OTPseudonym &theSignerNym, const OTString &strServerID, bool bBurnTransNo=false) |
EXPORT bool | CopyAcctsToConfirmingParty (OTParty &theParty) const |
void | RegisterAccountsForExecution (OTScript &theScript) |
bool | LoadAndVerifyAgentNyms (OTPseudonym &theServerNym, mapOfNyms &map_Nyms_Already_Loaded, mapOfNyms &map_NewlyLoaded) |
bool | LoadAndVerifyAssetAccounts (OTPseudonym &theServerNym, const OTString &strServerID, mapOfAccounts &map_Accts_Already_Loaded, mapOfAccounts &map_NewlyLoaded) |
Definition at line 174 of file OTParty.hpp.
opentxs::OTParty::OTParty | ( | ) |
Definition at line 218 of file OTParty.cpp.
opentxs::OTParty::OTParty | ( | const char * | szName, |
bool | bIsOwnerNym, | ||
const char * | szOwnerID, | ||
const char * | szAuthAgent, | ||
bool | bCreateAgent = false |
||
) |
Definition at line 226 of file OTParty.cpp.
opentxs::OTParty::OTParty | ( | std::string | str_PartyName, |
OTPseudonym & | theNym, | ||
std::string | str_agent_name, | ||
OTAccount * | pAccount = nullptr , |
||
const std::string * | pstr_account_name = nullptr , |
||
int64_t | lClosingTransNo = 0 |
||
) |
Definition at line 254 of file OTParty.cpp.
|
virtual |
Definition at line 457 of file OTParty.cpp.
bool opentxs::OTParty::AddAccount | ( | OTPartyAccount & | thePartyAcct | ) |
Definition at line 374 of file OTParty.cpp.
bool opentxs::OTParty::AddAccount | ( | const OTString & | strAgentName, |
const OTString & | strName, | ||
const OTString & | strAcctID, | ||
const OTString & | strAssetTypeID, | ||
int64_t | lClosingTransNo | ||
) |
Definition at line 342 of file OTParty.cpp.
bool opentxs::OTParty::AddAccount | ( | const OTString & | strAgentName, |
const char * | szAcctName, | ||
OTAccount & | theAccount, | ||
int64_t | lClosingTransNo | ||
) |
Definition at line 359 of file OTParty.cpp.
bool opentxs::OTParty::AddAgent | ( | OTAgent & | theAgent | ) |
Definition at line 307 of file OTParty.cpp.
void opentxs::OTParty::CleanupAccounts | ( | ) |
Definition at line 445 of file OTParty.cpp.
void opentxs::OTParty::CleanupAgents | ( | ) |
Definition at line 433 of file OTParty.cpp.
void opentxs::OTParty::ClearTemporaryPointers | ( | ) |
Definition at line 468 of file OTParty.cpp.
void opentxs::OTParty::CloseoutOpeningNumber | ( | const OTString & | strServerID, |
bool | bSave = false , |
||
OTPseudonym * | pSignerNym = nullptr |
||
) |
Definition at line 1595 of file OTParty.cpp.
bool opentxs::OTParty::Compare | ( | const OTParty & | rhs | ) | const |
Definition at line 1791 of file OTParty.cpp.
bool opentxs::OTParty::CopyAcctsToConfirmingParty | ( | OTParty & | theParty | ) | const |
Definition at line 1877 of file OTParty.cpp.
bool opentxs::OTParty::DropFinalReceiptToInboxes | ( | mapOfNyms * | pNymMap, |
const OTString & | strServerID, | ||
OTPseudonym & | theServerNym, | ||
const int64_t & | lNewTransactionNumber, | ||
const OTString & | strOrigCronItem, | ||
OTString * | pstrNote = nullptr , |
||
OTString * | pstrAttachment = nullptr |
||
) |
Definition at line 967 of file OTParty.cpp.
bool opentxs::OTParty::DropFinalReceiptToNymboxes | ( | const int64_t & | lNewTransactionNumber, |
const OTString & | strOrigCronItem, | ||
OTString * | pstrNote = nullptr , |
||
OTString * | pstrAttachment = nullptr , |
||
OTPseudonym * | pActualNym = nullptr |
||
) |
Definition at line 1014 of file OTParty.cpp.
OTPartyAccount * opentxs::OTParty::GetAccount | ( | const std::string & | str_acct_name | ) | const |
Definition at line 653 of file OTParty.cpp.
OTPartyAccount * opentxs::OTParty::GetAccountByAgent | ( | const std::string & | str_agent_name | ) |
Definition at line 701 of file OTParty.cpp.
OTPartyAccount * opentxs::OTParty::GetAccountByID | ( | const OTIdentifier & | theAcctID | ) | const |
Definition at line 721 of file OTParty.cpp.
OTPartyAccount * opentxs::OTParty::GetAccountByIndex | ( | int32_t | nIndex | ) |
Get OTPartyAccount pointer by Index. Returns nullptr on failure.
Definition at line 677 of file OTParty.cpp.
|
inline |
Definition at line 400 of file OTParty.hpp.
int32_t opentxs::OTParty::GetAccountCount | ( | std::string | str_agent_name | ) | const |
Definition at line 181 of file OTParty.cpp.
OTAgent * opentxs::OTParty::GetAgent | ( | const std::string & | str_agent_name | ) | const |
Get Agent pointer by Name. Returns nullptr on failure.
Definition at line 609 of file OTParty.cpp.
OTAgent * opentxs::OTParty::GetAgentByIndex | ( | int32_t | nIndex | ) | const |
Get Agent pointer by Index. Returns nullptr on failure.
Definition at line 630 of file OTParty.cpp.
|
inline |
Definition at line 347 of file OTParty.hpp.
void opentxs::OTParty::GetAllTransactionNumbers | ( | OTNumList & | numlistOutput | ) | const |
Definition at line 165 of file OTParty.cpp.
|
inline |
Definition at line 353 of file OTParty.hpp.
int64_t opentxs::OTParty::GetClosingTransNo | ( | std::string | str_for_acct_name | ) | const |
Definition at line 416 of file OTParty.cpp.
std::string opentxs::OTParty::GetEntityID | ( | bool * | pBoolSuccess = nullptr | ) | const |
Definition at line 556 of file OTParty.cpp.
|
inline |
Definition at line 291 of file OTParty.hpp.
std::string opentxs::OTParty::GetNymID | ( | bool * | pBoolSuccess = nullptr | ) | const |
Definition at line 541 of file OTParty.cpp.
|
inline |
Definition at line 295 of file OTParty.hpp.
|
inline |
Definition at line 279 of file OTParty.hpp.
std::string opentxs::OTParty::GetPartyID | ( | bool * | pBoolSuccess = nullptr | ) | const |
Definition at line 571 of file OTParty.cpp.
std::string opentxs::OTParty::GetPartyName | ( | bool * | pBoolSuccess = nullptr | ) | const |
Definition at line 489 of file OTParty.cpp.
void opentxs::OTParty::HarvestAllTransactionNumbers | ( | const OTString & | strServerID | ) |
Definition at line 1587 of file OTParty.cpp.
void opentxs::OTParty::HarvestClosingNumbers | ( | const OTString & | strServerID, |
bool | bSave = false , |
||
OTPseudonym * | pSignerNym = nullptr |
||
) |
Definition at line 1449 of file OTParty.cpp.
Definition at line 1484 of file OTParty.cpp.
void opentxs::OTParty::HarvestClosingNumbers | ( | OTPseudonym & | theNym, |
const OTString & | strServerID | ||
) |
Definition at line 1517 of file OTParty.cpp.
void opentxs::OTParty::HarvestOpeningNumber | ( | const OTString & | strServerID | ) |
Definition at line 1568 of file OTParty.cpp.
Definition at line 1548 of file OTParty.cpp.
void opentxs::OTParty::HarvestOpeningNumber | ( | OTPseudonym & | theNym, |
const OTString & | strServerID | ||
) |
Definition at line 1533 of file OTParty.cpp.
bool opentxs::OTParty::HasAccount | ( | OTAccount & | theAccount, |
OTPartyAccount ** | ppPartyAccount = nullptr |
||
) | const |
Definition at line 755 of file OTParty.cpp.
bool opentxs::OTParty::HasAccountByID | ( | const OTIdentifier & | theAcctID, |
OTPartyAccount ** | ppPartyAccount = nullptr |
||
) | const |
Definition at line 736 of file OTParty.cpp.
bool opentxs::OTParty::HasActiveAgent | ( | ) | const |
Definition at line 592 of file OTParty.cpp.
bool opentxs::OTParty::HasAgent | ( | OTPseudonym & | theNym, |
OTAgent ** | ppAgent = nullptr |
||
) | const |
Definition at line 776 of file OTParty.cpp.
bool opentxs::OTParty::HasAgentByNymID | ( | const OTIdentifier & | theNymID, |
OTAgent ** | ppAgent = nullptr |
||
) | const |
Definition at line 792 of file OTParty.cpp.
bool opentxs::OTParty::HasAuthorizingAgent | ( | OTPseudonym & | theNym, |
OTAgent ** | ppAgent = nullptr |
||
) | const |
Definition at line 814 of file OTParty.cpp.
bool opentxs::OTParty::HasAuthorizingAgentByNymID | ( | const OTIdentifier & | theNymID, |
OTAgent ** | ppAgent = nullptr |
||
) | const |
Definition at line 845 of file OTParty.cpp.
bool opentxs::OTParty::HasTransactionNum | ( | const int64_t & | lInput | ) | const |
Definition at line 150 of file OTParty.cpp.
bool opentxs::OTParty::IsEntity | ( | ) | const |
Definition at line 532 of file OTParty.cpp.
bool opentxs::OTParty::IsNym | ( | ) | const |
Definition at line 526 of file OTParty.cpp.
bool opentxs::OTParty::LoadAndVerifyAgentNyms | ( | OTPseudonym & | theServerNym, |
mapOfNyms & | map_Nyms_Already_Loaded, | ||
mapOfNyms & | map_NewlyLoaded | ||
) |
Definition at line 1197 of file OTParty.cpp.
bool opentxs::OTParty::LoadAndVerifyAssetAccounts | ( | OTPseudonym & | theServerNym, |
const OTString & | strServerID, | ||
mapOfAccounts & | map_Accts_Already_Loaded, | ||
mapOfAccounts & | map_NewlyLoaded | ||
) |
Definition at line 1094 of file OTParty.cpp.
OTPseudonym * opentxs::OTParty::LoadAuthorizingAgentNym | ( | OTPseudonym & | theSignerNym, |
OTAgent ** | ppAgent = nullptr |
||
) |
Definition at line 899 of file OTParty.cpp.
void opentxs::OTParty::RegisterAccountsForExecution | ( | OTScript & | theScript | ) |
Definition at line 1779 of file OTParty.cpp.
bool opentxs::OTParty::ReserveTransNumsForConfirm | ( | const OTString & | strServerID | ) |
Definition at line 1631 of file OTParty.cpp.
void opentxs::OTParty::RetrieveNymPointers | ( | mapOfNyms & | map_Nyms_Already_Loaded | ) |
Definition at line 879 of file OTParty.cpp.
bool opentxs::OTParty::SendNoticeToParty | ( | bool | bSuccessMsg, |
OTPseudonym & | theServerNym, | ||
const OTIdentifier & | theServerID, | ||
const int64_t & | lNewTransactionNumber, | ||
const OTString & | strReference, | ||
OTString * | pstrNote = nullptr , |
||
OTString * | pstrAttachment = nullptr , |
||
OTPseudonym * | pActualNym = nullptr |
||
) |
Definition at line 1057 of file OTParty.cpp.
void opentxs::OTParty::Serialize | ( | OTString & | strAppend, |
bool | bCalculatingID = false , |
||
bool | bSpecifyAssetID = false , |
||
bool | bSpecifyParties = false |
||
) | const |
Definition at line 1731 of file OTParty.cpp.
|
inline |
Definition at line 357 of file OTParty.hpp.
|
inline |
Definition at line 287 of file OTParty.hpp.
|
inline |
Definition at line 299 of file OTParty.hpp.
|
inline |
Definition at line 283 of file OTParty.hpp.
bool opentxs::OTParty::SetPartyName | ( | const std::string & | str_party_name_input | ) |
Definition at line 507 of file OTParty.cpp.
bool opentxs::OTParty::SignContract | ( | OTContract & | theInput | ) | const |
Definition at line 1423 of file OTParty.cpp.
bool opentxs::OTParty::VerifyAccountsWithTheirAgents | ( | OTPseudonym & | theSignerNym, |
const OTString & | strServerID, | ||
bool | bBurnTransNo = false |
||
) |
Definition at line 1370 of file OTParty.cpp.
bool opentxs::OTParty::VerifyOwnershipOfAccount | ( | const OTAccount & | theAccount | ) | const |
Definition at line 934 of file OTParty.cpp.