#include <currunit.h>
Inheritance diagram for CurrencyUnit:
Public Member Functions | |
CurrencyUnit (const UChar *isoCode, UErrorCode &ec) | |
Construct an object with the given ISO currency code. | |
CurrencyUnit (const CurrencyUnit &other) | |
Copy constructor. | |
CurrencyUnit & | operator= (const CurrencyUnit &other) |
Assignment operator. | |
virtual UObject * | clone () const |
Return a polymorphic clone of this object. | |
virtual | ~CurrencyUnit () |
Destructor. | |
UBool | operator== (const UObject &other) const |
Equality operator. | |
virtual UClassID | getDynamicClassID () const |
Returns a unique class ID for this object POLYMORPHICALLY. | |
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. |
dollars) or JPY (Japanese yen). This class is a thin wrapper over a UChar string that subclasses MeasureUnit, for use with Measure and MeasureFormat.
Definition at line 35 of file currunit.h.
CurrencyUnit::CurrencyUnit | ( | const UChar * | isoCode, | |
UErrorCode & | ec | |||
) |
Construct an object with the given ISO currency code.
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. |
CurrencyUnit::CurrencyUnit | ( | const CurrencyUnit & | other | ) |
virtual CurrencyUnit::~CurrencyUnit | ( | ) | [virtual] |
CurrencyUnit& CurrencyUnit::operator= | ( | const CurrencyUnit & | other | ) |
virtual UObject* CurrencyUnit::clone | ( | ) | const [virtual] |
Return a polymorphic clone of this object.
The result will have the same class as returned by getDynamicClassID().
Implements MeasureUnit.
Equality operator.
Return true if this object is equal to the given object.
Implements MeasureUnit.
virtual UClassID CurrencyUnit::getDynamicClassID | ( | ) | const [virtual] |
static UClassID CurrencyUnit::getStaticClassID | ( | ) | [static] |
Returns the class ID for this class.
This is used to compare to the return value of getDynamicClassID().
const UChar * CurrencyUnit::getISOCurrency | ( | ) | const [inline] |
Return the ISO currency code of this object.
Definition at line 110 of file currunit.h.
Referenced by CurrencyAmount::getISOCurrency().