currunit.h

Go to the documentation of this file.
00001 /* 00002 ********************************************************************** 00003 * Copyright (c) 2004, International Business Machines 00004 * Corporation and others. All Rights Reserved. 00005 ********************************************************************** 00006 * Author: Alan Liu 00007 * Created: April 26, 2004 00008 * Since: ICU 3.0 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 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__

Generated on Fri Jun 18 12:35:57 2004 for ICU by doxygen 1.3.7