#include <curramt.h>

Public Member Functions | |
| CurrencyAmount (const Formattable &amount, const UChar *isoCode, UErrorCode &ec) | |
| Construct an object with the given numeric amount and the given ISO currency code. | |
| CurrencyAmount (double amount, const UChar *isoCode, UErrorCode &ec) | |
| Construct an object with the given numeric amount and the given ISO currency code. | |
| CurrencyAmount (const CurrencyAmount &other) | |
| Copy constructor. | |
| CurrencyAmount & | operator= (const CurrencyAmount &other) |
| Assignment operator. | |
| virtual UObject * | clone () const |
| Return a polymorphic clone of this object. | |
| virtual | ~CurrencyAmount () |
| Destructor. | |
| virtual UClassID | getDynamicClassID () const |
| Returns a unique class ID for this object POLYMORPHICALLY. | |
| const CurrencyUnit & | getCurrency () const |
| Return the currency unit object of this object. | |
| const UChar * | getISOCurrency () const |
| Return the ISO currency code of this object. | |
Static Public Member Functions | |
| static UClassID | getStaticClassID () |
| Returns the class ID for this class. | |
Definition at line 35 of file curramt.h.
| CurrencyAmount::CurrencyAmount | ( | const Formattable & | amount, | |
| const UChar * | isoCode, | |||
| UErrorCode & | ec | |||
| ) |
Construct an object with the given numeric amount and the given ISO currency code.
| amount | a numeric object; amount.isNumeric() must be TRUE | |
| isoCode | the 3-letter ISO 4217 currency code; must not be NULL and must have length 3 | |
| ec | input-output error code. If the amount or the isoCode is invalid, then this will be set to a failing value. |
| CurrencyAmount::CurrencyAmount | ( | double | amount, | |
| const UChar * | isoCode, | |||
| UErrorCode & | ec | |||
| ) |
Construct an object with the given numeric amount and the given ISO currency code.
| amount | the amount of the given currency | |
| isoCode | the 3-letter ISO 4217 currency code; must not be NULL and must have length 3 | |
| ec | input-output error code. If the isoCode is invalid, then this will be set to a failing value. |
| CurrencyAmount::CurrencyAmount | ( | const CurrencyAmount & | other | ) |
| virtual CurrencyAmount::~CurrencyAmount | ( | ) | [virtual] |
| virtual UObject* CurrencyAmount::clone | ( | ) | const [virtual] |
Return a polymorphic clone of this object.
The result will have the same class as returned by getDynamicClassID().
Implements Measure.
| const CurrencyUnit & CurrencyAmount::getCurrency | ( | ) | const [inline] |
Return the currency unit object of this object.
Definition at line 119 of file curramt.h.
References Measure::getUnit().
Referenced by getISOCurrency().
| virtual UClassID CurrencyAmount::getDynamicClassID | ( | ) | const [virtual] |
| const UChar * CurrencyAmount::getISOCurrency | ( | ) | const [inline] |
Return the ISO currency code of this object.
Definition at line 123 of file curramt.h.
References getCurrency(), and CurrencyUnit::getISOCurrency().
| static UClassID CurrencyAmount::getStaticClassID | ( | ) | [static] |
Returns the class ID for this class.
This is used to compare to the return value of getDynamicClassID().
| CurrencyAmount& CurrencyAmount::operator= | ( | const CurrencyAmount & | other | ) |
1.5.7.1