]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/unicode/measunit.h
2 **********************************************************************
3 * Copyright (c) 2004-2006, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
7 * Created: April 26, 2004
9 **********************************************************************
11 #ifndef __MEASUREUNIT_H__
12 #define __MEASUREUNIT_H__
14 #include "unicode/utypes.h"
16 #if !UCONFIG_NO_FORMATTING
18 #include "unicode/fmtable.h"
22 * \brief C++ API: A unit for measuring a quantity.
28 * A unit such as length, mass, volume, currency, etc. A unit is
29 * coupled with a numeric amount to produce a Measure.
31 * <p>This is an abstract class.
36 class U_I18N_API MeasureUnit
: public UObject
{
39 * Return a polymorphic clone of this object. The result will
40 * have the same class as returned by getDynamicClassID().
43 virtual UObject
* clone() const = 0;
49 virtual ~MeasureUnit();
52 * Equality operator. Return true if this object is equal
53 * to the given object.
56 virtual UBool
operator==(const UObject
& other
) const = 0;
60 * Default constructor.
68 // NOTE: There is no measunit.cpp. For implementation, see measure.cpp. [alan]
70 #endif // !UCONFIG_NO_FORMATTING
71 #endif // __MEASUREUNIT_H__