11#ifndef __CURRENCYAMOUNT_H__
12#define __CURRENCYAMOUNT_H__
16#if !UCONFIG_NO_FORMATTING
116 inline const UChar* getISOCurrency()
const;
A currency together with a numeric amount, such as 200 USD.
static UClassID getStaticClassID()
Returns the class ID for this class.
CurrencyAmount & operator=(const CurrencyAmount &other)
Assignment operator.
virtual UClassID getDynamicClassID() const
Returns a unique class ID for this object POLYMORPHICALLY.
CurrencyAmount(double amount, const UChar *isoCode, UErrorCode &ec)
Construct an object with the given numeric amount and the given ISO currency code.
CurrencyAmount(const Formattable &amount, const UChar *isoCode, UErrorCode &ec)
Construct an object with the given numeric amount and the given ISO currency code.
CurrencyAmount(const CurrencyAmount &other)
Copy constructor.
virtual UObject * clone() const
Return a polymorphic clone of this object.
virtual ~CurrencyAmount()
Destructor.
const UChar * getISOCurrency() const
Return the ISO currency code of this object.
const CurrencyUnit & getCurrency() const
Return the currency unit object of this object.
A unit of currency, such as USD (U.S.
"Smart pointer" base class; do not use directly: use LocalPointer etc.
An amount of a specified unit, consisting of a number and a Unit.
const MeasureUnit & getUnit() const
Return a reference to the unit of this object.
UObject is the common ICU "boilerplate" class.
C++ API: Currency Unit Information.
C++ API: MeasureUnit object.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.