Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

currunit.h

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 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__

Generated on Tue Jul 26 00:39:56 2005 for ICU 3.2 by  doxygen 1.3.9.1