150 const bool bProcessed =
157 "-----BEGIN SIGNED TRANSACTION-----"))
164 "-----BEGIN SIGNED TRANSACTION ITEM-----"))
173 "-----BEGIN SIGNED LEDGER-----"))
180 "-----BEGIN SIGNED ACCOUNT-----"))
190 const char* szFunc =
"OTTransactionType::TransactionFactory";
192 if (
nullptr == pContract) {
194 <<
": Object type not yet supported by class factory: "
195 << strFirstLine <<
"\n";
223 <<
": Failed loading contract from string (first line): "
224 << strFirstLine <<
"\n";
256 , m_lTransactionNum(0)
257 , m_lInReferenceToTransaction(0)
258 , m_lNumberOfOrigin(0)
259 , m_bLoadSecurely(true)
271 , m_ServerID(theServerID)
272 , m_AcctUserID(theUserID)
273 , m_lTransactionNum(0)
274 , m_lInReferenceToTransaction(0)
275 , m_lNumberOfOrigin(0)
276 , m_bLoadSecurely(true)
290 int64_t lTransactionNum)
292 , m_ServerID(theServerID)
293 , m_AcctUserID(theUserID)
294 , m_lTransactionNum(lTransactionNum)
295 , m_lInReferenceToTransaction(0)
296 , m_lNumberOfOrigin(0)
297 , m_bLoadSecurely(true)
407 otErr <<
"Error verifying account ID in "
408 "OTTransactionType::VerifyAccount\n";
412 otErr <<
"Error verifying signature in "
413 "OTTransactionType::VerifyAccount.\n";
417 otLog4 <<
"\nWe now know that...\n"
418 "1) The expected Account ID matches the ID that was found on the "
420 "2) The SIGNATURE VERIFIED on the object.\n\n";
441 otErr <<
"Identifiers do NOT match in "
442 "OTTransactionType::VerifyContractID.\n"
443 "m_ID: " << str1 <<
"\n m_AcctID: " << str2
444 <<
"\n m_ServerID: " << str3 <<
"\n m_AcctServerID: " << str4
EXPORT void GetReferenceString(OTString &theStr) const
OTLOG_IMPORT OTLogStream otLog4
void Release_TransactionType()
virtual EXPORT void CalculateNumberOfOrigin()
EXPORT void SetNumberOfOrigin(int64_t lTransactionNum)
static EXPORT bool DearmorAndTrim(const OTString &strInput, OTString &strOutput, OTString &strFirstLine)
int64_t m_lInReferenceToTransaction
void SetTransactionNum(int64_t lTransactionNum)
static EXPORT OTTransactionType * TransactionFactory(OTString strInput)
bool IsSameAccount(const OTTransactionType &rhs) const
OTLOG_IMPORT OTLogStream otOut
EXPORT void GetNumList(OTNumList &theOutput)
void InitTransactionType()
int64_t m_lTransactionNum
virtual bool SaveContractWallet(std::ofstream &ofs) const
EXPORT bool SetString(const OTString &theData, bool bLineBreaks=true)
virtual EXPORT int64_t GetNumberOfOrigin()
const OTIdentifier & GetRealAccountID() const
EXPORT void SetReferenceString(const OTString &theStr)
OTIdentifier m_AcctServerID
virtual ~OTTransactionType()
EXPORT int64_t GetReferenceToNum() const
OTLOG_IMPORT OTLogStream otErr
virtual bool VerifyAccount(const OTPseudonym &theNym)
EXPORT int64_t GetTransactionNum() const
EXPORT void SetReferenceToNum(int64_t lTransactionNum)
virtual EXPORT void Release()
virtual EXPORT bool VerifySignature(const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) const
virtual EXPORT bool VerifyContractID() const
int64_t m_lNumberOfOrigin
EXPORT bool Contains(const char *compare) const
const OTIdentifier & GetUserID() const
bool Contains(const OTString &strContains)
EXPORT bool GetString(OTString &theData, bool bLineBreaks=true) const
EXPORT bool LoadContractFromString(const OTString &theStr)
virtual EXPORT void Release()
virtual EXPORT void Release()
OTASCIIArmor m_ascInReferenceTo
const OTIdentifier & GetRealServerID() const
EXPORT bool VerifyNumberOfOrigin(OTTransactionType &compareTo)
EXPORT int64_t GetRawNumberOfOrigin() const