133 #ifndef OPENTXS_CORE_OTASSETCONTRACT_HPP
134 #define OPENTXS_CORE_OTASSETCONTRACT_HPP
142 class AccountVisitor;
184 int64_t lValue, int32_t nFactor = 100, int32_t nPower = 2,
185 const char* szCurrencySymbol =
"",
186 const char* szThousandSeparator =
",",
187 const char* szDecimalPoint =
".");
189 const std::string& str_input,
190 int32_t nFactor = 100, int32_t nPower = 2,
191 const char* szThousandSeparator =
",",
192 const char* szDecimalPoint =
".");
194 EXPORT
bool FormatAmount(int64_t amount, std::string& str_output)
const;
197 const std::string& str_input)
const;
265 #endif // OPENTXS_CORE_OTASSETCONTRACT_HPP
virtual EXPORT bool DisplayStatistics(OTString &strContents) const
static EXPORT bool ParseFormatted(int64_t &lResult, const std::string &str_input, int32_t nFactor=100, int32_t nPower=2, const char *szThousandSeparator=",", const char *szDecimalPoint=".")
OTString m_strCurrencyName
OTString m_strCurrencyType
virtual EXPORT int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
static EXPORT std::string formatLongAmount(int64_t lValue, int32_t nFactor=100, int32_t nPower=2, const char *szCurrencySymbol="", const char *szThousandSeparator=",", const char *szDecimalPoint=".")
OTString m_strCurrencyFraction
EXPORT const OTString & GetCurrencyTLA() const
EXPORT bool FormatAmount(int64_t amount, std::string &str_output) const
EXPORT bool StringToAmount(int64_t &amount, const std::string &str_input) const
EXPORT const OTString & GetCurrencySymbol() const
OTString m_strCurrencyDecimalPower
OTString m_strIssueCompany
virtual EXPORT void CreateContents()
EXPORT bool AddAccountRecord(const OTAccount &theAccount) const
OTString m_strCurrencyTLA
OTString m_strCurrencyFactor
OTString m_strCurrencySymbol
virtual EXPORT ~OTAssetContract()
EXPORT bool VisitAccountRecords(AccountVisitor &visitor) const
OTString m_strIssueContractURL
EXPORT bool IsShares() const
EXPORT const OTString & GetBasketInfo() const
EXPORT const OTString & GetCurrencyFraction() const
EXPORT bool EraseAccountRecord(const OTIdentifier &theAcctID) const
virtual EXPORT bool SaveContractWallet(OTString &strContents) const
EXPORT const OTString & GetCurrencyName() const