47 bool empty()
const {
return value_ == QuantLib::Null<QuantLib::Real>(); };
48 QuantLib::Real
value()
const;
55 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() const
TradeMonetary(const QuantLib::Real &value, std::string currency=std::string())
void setCurrency(const std::string ¤cy)
const string & valueString() const
void fromXMLNode(XMLNode *node)
TradeMonetary(const std::string &valueString)
QuantLib::Real value() const
void setValue(const QuantLib::Real &value)
void toXMLNode(XMLDocument &doc, XMLNode *node)
Small XML Document wrapper class.
Base class for all serializable classes.
Real parseReal(const string &s)
Convert text to Real.
std::string to_string(const LocationInfo &l)
Serializable Credit Default Swap.
Map text representations to QuantLib/QuantExt types.
string conversion utilities