You can not have too much of it.
Definition at line 227 of file money.h.
Available conversion methods.
Arithmetic operations are allowed on monies of same and different currencies. Monies of same currency are operated upon without any check for the conversion method. For monies of different currencies, the conversion method is used to determine how to convert the money.
Reference: OMG Currency Specification (formal/00-06-29)
OSB_LIB::Money::Money | ( | ) | [inline] |
Default constructor.
The default constructor creates a Money object without a currency (ID_NOT_SET) and an amount of 0. When such an object is used in an addition or subtraction with another Money, then it will assume the currency of the other object for the purpose of this operation. Comparison operations are not treated like this, i.e., a default constructed Money cannot be used in any comparison with a Money that has a defined currency.
OSB_LIB::Money::Money | ( | const Currency::Oid & | cc, | |
const Decimal & | d | |||
) | [inline] |
Decimal OSB_LIB::Money::amount | ( | ) | const [inline] |
static ConversionMethod OSB_LIB::Money::conversionMethod | ( | ConversionMethod | ) | [static] |
Set currency conversion method. Returns old method.
static ConversionMethod OSB_LIB::Money::conversionMethod | ( | ) | [inline, static] |
Currency comversion method accessor.
Definition at line 280 of file money.h.
References conversionMethod_.
const Currency::Oid& OSB_LIB::Money::currency | ( | ) | const [inline] |
Money & OSB_LIB::Money::operator *= | ( | double | ) | [inline] |
Money& OSB_LIB::Money::operator- | ( | ) |
Negation.
Money & OSB_LIB::Money::operator/= | ( | double | ) | [inline] |
Decimal OSB_LIB::Money::amount_ [private] |
Amount.
Definition at line 309 of file money.h.
Referenced by amount(), operator *=(), and operator/=().
ConversionMethod OSB_LIB::Money::conversionMethod_ [static, private] |
Currency conversion method.
Definition at line 311 of file money.h.
Referenced by conversionMethod().
Currency::Oid OSB_LIB::Money::currency_ [private] |