133 #ifndef OPENTXS_CORE_SCRIPT_OTSTASH_HPP
134 #define OPENTXS_CORE_SCRIPT_OTSTASH_HPP
144 template <
class char_type,
class super_
class>
162 std::string m_str_stash_name;
169 return m_str_stash_name;
173 int64_t
GetAmount(std::string str_asset_type_id);
174 bool CreditStash(std::string str_asset_type_id,
const int64_t& lAmount);
175 bool DebitStash(std::string str_asset_type_id,
const int64_t& lAmount);
184 : m_str_stash_name(str_stash_name)
194 #endif // OPENTXS_CORE_SCRIPT_OTSTASH_HPP
OTStashItem * GetStash(const std::string &str_asset_type_id)
IIrrXMLReader< char, IXMLBase > IrrXMLReader
bool DebitStash(std::string str_asset_type_id, const int64_t &lAmount)
std::map< std::string, OTStashItem * > mapOfStashItems
int32_t ReadFromXMLNode(irr::io::IrrXMLReader *&xml, const OTString &strStashName, const OTString &strItemCount)
void Serialize(OTString &strAppend) const
int64_t GetAmount(std::string str_asset_type_id)
const std::string GetName() const
OTStash(std::string str_stash_name)
bool CreditStash(std::string str_asset_type_id, const int64_t &lAmount)