00001 /* 00002 ********************************************************************** 00003 * Copyright (c) 2004-2014, 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 00025 U_NAMESPACE_BEGIN 00026 00035 class U_I18N_API CurrencyUnit: public MeasureUnit { 00036 public: 00045 CurrencyUnit(const UChar* isoCode, UErrorCode &ec); 00046 00051 CurrencyUnit(const CurrencyUnit& other); 00052 00057 CurrencyUnit& operator=(const CurrencyUnit& other); 00058 00064 virtual UObject* clone() const; 00065 00070 virtual ~CurrencyUnit(); 00071 00080 virtual UClassID getDynamicClassID() const; 00081 00088 static UClassID U_EXPORT2 getStaticClassID(); 00089 00094 inline const UChar* getISOCurrency() const; 00095 00096 private: 00100 UChar isoCode[4]; 00101 }; 00102 00103 inline const UChar* CurrencyUnit::getISOCurrency() const { 00104 return isoCode; 00105 } 00106 00107 U_NAMESPACE_END 00108 00109 #endif // !UCONFIG_NO_FORMATTING 00110 #endif // __CURRENCYUNIT_H__
1.6.1