133 #ifndef OPENTXS_CORE_OTLEDGER_HPP
134 #define OPENTXS_CORE_OTLEDGER_HPP
245 bool bDeleteIt =
true);
334 return static_cast<int32_t
>(m_mapTransactions.size());
365 bool bCreateFile =
false);
369 ledgerType theType,
bool bCreateFile =
false);
381 #endif // OPENTXS_CORE_OTLEDGER_HPP
EXPORT bool LoadInboxFromString(const OTString &strBox)
EXPORT bool RemoveTransaction(int64_t lTransactionNum, bool bDeleteIt=true)
static EXPORT char const * _GetTypeString(ledgerType theType)
EXPORT OTItem * GenerateBalanceStatement(int64_t lAdjustment, const OTTransaction &theOwner, OTPseudonym &theNym, const OTAccount &theAccount, OTLedger &theOutbox)
int32_t GetTransactionCount() const
virtual EXPORT bool SaveContractWallet(std::ofstream &ofs) const
EXPORT bool CalculateNymboxHash(OTIdentifier &theOutput)
EXPORT bool LoadBoxReceipt(const int64_t &lTransactionNum)
EXPORT OTTransaction * GetTransferReceipt(int64_t lNumberOfOrigin)
EXPORT bool SaveOutbox(OTIdentifier *pOutboxHash=nullptr)
EXPORT bool LoadRecordBox()
EXPORT bool SaveBoxReceipts()
virtual EXPORT bool VerifyAccount(const OTPseudonym &theNym)
EXPORT bool DeleteBoxReceipt(const int64_t &lTransactionNum)
static EXPORT OTTransactionType * TransactionFactory(OTString strInput)
EXPORT char const * GetTypeString() const
bool LoadGeneric(ledgerType theType, const OTString *pString=nullptr)
EXPORT void Release_Ledger()
bool SaveGeneric(ledgerType theType)
EXPORT bool SaveRecordBox()
EXPORT bool SaveBoxReceipt(const int64_t &lTransactionNum)
EXPORT bool AddTransaction(OTTransaction &theTransaction)
EXPORT void ProduceOutboxReport(OTItem &theBalanceItem)
virtual void UpdateContents()
EXPORT bool CalculateOutboxHash(OTIdentifier &theOutput)
EXPORT int32_t GetTransactionCountInRefTo(int64_t lReferenceNum) const
EXPORT bool SavePaymentInbox()
virtual EXPORT void Release()
EXPORT OTTransaction * GetReplyNotice(const int64_t &lRequestNum)
EXPORT void ReleaseTransactions()
EXPORT bool LoadRecordBoxFromString(const OTString &strBox)
EXPORT int32_t GetTransactionIndex(int64_t lTransactionNum)
virtual int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
EXPORT bool LoadOutboxFromString(const OTString &strBox)
EXPORT bool LoadLedgerFromString(const OTString &theStr)
EXPORT bool SaveExpiredBox()
EXPORT bool CalculateHash(OTIdentifier &theOutput)
EXPORT bool LoadNymboxFromString(const OTString &strBox)
static EXPORT OTLedger * GenerateLedger(const OTIdentifier &theUserID, const OTIdentifier &theAcctID, const OTIdentifier &theServerID, ledgerType theType, bool bCreateFile=false)
EXPORT bool LoadedLegacyData() const
ledgerType GetType() const
EXPORT OTTransaction * GetTransactionByIndex(int32_t nIndex) const
EXPORT bool LoadBoxReceipts(std::set< int64_t > *psetUnloaded=nullptr)
EXPORT bool SaveNymbox(OTIdentifier *pNymboxHash=nullptr)
EXPORT int64_t GetTotalPendingValue()
virtual EXPORT ~OTLedger()
EXPORT bool LoadExpiredBox()
EXPORT bool LoadPaymentInboxFromString(const OTString &strBox)
EXPORT OTTransaction * GetFinalReceipt(int64_t lReferenceNum)
EXPORT bool LoadExpiredBoxFromString(const OTString &strBox)
EXPORT bool CalculateInboxHash(OTIdentifier &theOutput)
std::map< int64_t, OTTransaction * > mapOfTransactions
EXPORT OTTransaction * GetTransaction(OTTransaction::transactionType theType)
EXPORT const mapOfTransactions & GetTransactionMap() const
EXPORT bool SaveInbox(OTIdentifier *pInboxHash=nullptr)
EXPORT OTTransaction * GetChequeReceipt(int64_t lChequeNum, OTCheque **ppChequeOut=nullptr)
EXPORT bool LoadPaymentInbox()