00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __CURRENCYUNIT_H__
00012 #define __CURRENCYUNIT_H__
00013
00014 #include "unicode/utypes.h"
00015
00016 #if !UCONFIG_NO_FORMATTING
00017
00018 #include "unicode/measunit.h"
00019
00020 U_NAMESPACE_BEGIN
00021
00030 class U_I18N_API CurrencyUnit: public MeasureUnit {
00031 public:
00040 CurrencyUnit(const UChar* isoCode, UErrorCode &ec);
00041
00046 CurrencyUnit(const CurrencyUnit& other);
00047
00052 CurrencyUnit& operator=(const CurrencyUnit& other);
00053
00059 virtual UObject* clone() const;
00060
00065 virtual ~CurrencyUnit();
00066
00072 UBool operator==(const UObject& other) const;
00073
00082 virtual UClassID getDynamicClassID() const;
00083
00090 static UClassID U_EXPORT2 getStaticClassID();
00091
00096 inline const UChar* getISOCurrency() const;
00097
00098 private:
00102 UChar isoCode[4];
00103 };
00104
00105 inline const UChar* CurrencyUnit::getISOCurrency() const {
00106 return isoCode;
00107 }
00108
00109 U_NAMESPACE_END
00110
00111 #endif // !UCONFIG_NO_FORMATTING
00112 #endif // __CURRENCYUNIT_H__