27 return out << c.
code();
29 return out <<
"null currency";
38 std::string fractionSymbol,
42 std::set<std::string> minorUnitCodes)
43 : name(
std::move(name)), code(
std::move(code)), numeric(numericCode), symbol(
std::move(symbol)),
44 fractionSymbol(
std::move(fractionSymbol)), fractionsPerUnit(fractionsPerUnit),
45 rounding(rounding), triangulated(
std::move(triangulationCurrency)),
46 minorUnitCodes(
std::move(minorUnitCodes)) {}
55 std::string formatString,
64 const std::string&
code,
83 const std::string& code,
85 const std::string& symbol,
86 const std::string& fractionSymbol,
89 const std::string& formatString,
90 const Currency& triangulationCurrency,
91 const std::set<std::string>& minorUnitCodes)
100 triangulationCurrency,
const Rounding & rounding() const
rounding convention
const std::string & code() const
ISO 4217 three-letter code, e.g, "USD".
const std::string & name() const
currency name, e.g, "U.S. Dollar"
bool empty() const
is this a usable instance?
Integer numericCode() const
ISO 4217 numeric code, e.g, "840".
const std::set< std::string > & minorUnitCodes() const
minor unit codes, e.g. GBp, GBX for GBP
Integer fractionsPerUnit() const
number of fractionary parts in a unit, e.g, 100
const Currency & triangulationCurrency() const
currency used for triangulated exchange when required
ext::shared_ptr< Data > data_
const std::string & fractionSymbol() const
fraction symbol, e.g, "ยข"
const std::string & symbol() const
symbol, e.g, "$"
Currency()=default
default constructor
QL_INTEGER Integer
integer number
std::ostream & operator<<(std::ostream &out, GFunctionFactory::YieldCurveModel type)
#define QL_DEPRECATED_DISABLE_WARNING
#define QL_DEPRECATED_ENABLE_WARNING
QL_DEPRECATED Data(std::string name, std::string code, Integer numericCode, std::string symbol, std::string fractionSymbol, Integer fractionsPerUnit, const Rounding &rounding, Currency triangulationCurrency=Currency(), std::set< std::string > minorUnitCodes={})