Logo
Reference manual - version ored_version
TradeMonetary Class Reference
Inheritance diagram for TradeMonetary:

Public Member Functions

 TradeMonetary (const QuantLib::Real &value, std::string currency=std::string())
 TradeMonetary (const std::string &valueString)
void fromXMLNode (XMLNode *node)
void toXMLNode (XMLDocument &doc, XMLNode *node)
bool empty () const
QuantLib::Real value () const
const stringvalueString () const
std::string currency () const
void setCurrency (const std::string &currency)
void setValue (const QuantLib::Real &value)

Protected Attributes

QuantLib::Real value_ = QuantLib::Null<QuantLib::Real>()
std::string valueString_
 store a string version of the value, this ensures toXML values matches fromXML input
std::string currency_