123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #ifndef __CURRENCYAMOUNT_H__
- #define __CURRENCYAMOUNT_H__
- #include "unicode/utypes.h"
- #if !UCONFIG_NO_FORMATTING
- #include "unicode/measure.h"
- #include "unicode/currunit.h"
-
- U_NAMESPACE_BEGIN
- class U_I18N_API CurrencyAmount: public Measure {
- public:
-
- CurrencyAmount(const Formattable& amount, const UChar* isoCode,
- UErrorCode &ec);
-
- CurrencyAmount(double amount, const UChar* isoCode,
- UErrorCode &ec);
-
- CurrencyAmount(const CurrencyAmount& other);
-
-
- CurrencyAmount& operator=(const CurrencyAmount& other);
-
- virtual UObject* clone() const;
-
- virtual ~CurrencyAmount();
-
-
- virtual UClassID getDynamicClassID() const;
-
- static UClassID U_EXPORT2 getStaticClassID();
-
- inline const CurrencyUnit& getCurrency() const;
-
- inline const UChar* getISOCurrency() const;
- };
- inline const CurrencyUnit& CurrencyAmount::getCurrency() const {
- return (const CurrencyUnit&) getUnit();
- }
- inline const UChar* CurrencyAmount::getISOCurrency() const {
- return getCurrency().getISOCurrency();
- }
- U_NAMESPACE_END
- #endif
- #endif
|