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 string & | valueString () const |
std::string | currency () const |
void | setCurrency (const std::string ¤cy) |
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_ |