ICU 50.2 50.2
measunit.h
Go to the documentation of this file.
1/*
2**********************************************************************
3* Copyright (c) 2004-2006, International Business Machines
4* Corporation and others. All Rights Reserved.
5**********************************************************************
6* Author: Alan Liu
7* Created: April 26, 2004
8* Since: ICU 3.0
9**********************************************************************
10*/
11#ifndef __MEASUREUNIT_H__
12#define __MEASUREUNIT_H__
13
14#include "unicode/utypes.h"
15
16#if !UCONFIG_NO_FORMATTING
17
18#include "unicode/fmtable.h"
19
24
26
37 public:
43 virtual UObject* clone() const = 0;
44
49 virtual ~MeasureUnit();
50
56 virtual UBool operator==(const UObject& other) const = 0;
57
58 protected:
64};
65
67
68// NOTE: There is no measunit.cpp. For implementation, see measure.cpp. [alan]
69
70#endif // !UCONFIG_NO_FORMATTING
71#endif // __MEASUREUNIT_H__
virtual UObject * clone() const =0
Return a polymorphic clone of this object.
virtual UBool operator==(const UObject &other) const =0
Equality operator.
virtual ~MeasureUnit()
Destructor.
MeasureUnit()
Default constructor.
UObject is the common ICU "boilerplate" class.
Definition uobject.h:229
C++ API: Formattable is a thin wrapper for primitive numeric types.
int8_t UBool
The ICU boolean type.
Definition umachine.h:200
Basic definitions for ICU, for both C and C++ APIs.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
Definition utypes.h:358
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition uversion.h:130
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition uversion.h:129