#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 | |
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.
|
Construct an object with the given ISO currency code.
|
|
Copy constructor.
|
|
Destructor.
|
|
Return a polymorphic clone of this object. The result will have the same class as returned by getDynamicClassID().
Implements MeasureUnit. |
|
Returns a unique class ID for this object POLYMORPHICALLY. This method implements a simple form of RTTI used by ICU.
Implements UObject. |
|
Return the ISO currency code of this object.
Definition at line 110 of file currunit.h. References UChar. Referenced by CurrencyAmount::getISOCurrency(). |
|
Returns the class ID for this class. This is used to compare to the return value of getDynamicClassID().
|
|
Assignment operator.
|
|
Equality operator. Return true if this object is equal to the given object.
Implements MeasureUnit. |