A currency consists of the ISO 4217 currency code (e.g., EUR), base name (dollar), fraction name (cents) and the symbols for the base and fraction parts.
Users creating non-ISO currencies will need to maintain the uniqueness of these identifiers. The currency code is used by other classes (e.g., Money) to refer to a currency.
Definition at line 73 of file money.h.
typedef std::string OSB_LIB::Currency::Oid |
Default constructor with optional object id.
OsbException | if oid contains more than 3 characters. |
std::string OSB_LIB::Currency::baseName | ( | ) | const [inline] |
std::string OSB_LIB::Currency::baseSymbol | ( | ) | const [inline] |
Symbol to use for the base part of an amount (e.g., $).
Definition at line 97 of file money.h.
References baseSymbol_.
std::string OSB_LIB::Currency::fractionName | ( | ) | const [inline] |
Fraction name of the currency (e.g., cents).
Definition at line 95 of file money.h.
References fractionName_.
std::string OSB_LIB::Currency::fractionSymbol | ( | ) | const [inline] |
Symbol for the fraction part of an amount (e.g., c).
Definition at line 99 of file money.h.
References fractionSymbol_.
bool OSB_LIB::Currency::match | ( | const Oid & | oid | ) | const [inline] |
Oid OSB_LIB::Currency::oid | ( | ) | const [inline] |
friend class OSB_DB::CurrencyBookGw [friend] |
std::string OSB_LIB::Currency::baseName_ [private] |
std::string OSB_LIB::Currency::baseSymbol_ [private] |
std::string OSB_LIB::Currency::fractionName_ [private] |
std::string OSB_LIB::Currency::fractionSymbol_ [private] |
Oid OSB_LIB::Currency::oid_ [private] |