ICU 60.2 60.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

nounit.h
Go to the documentation of this file.
1 // © 2017 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 *******************************************************************************
5 * Copyright (C) 2009-2017, International Business Machines Corporation, *
6 * Google, and others. All Rights Reserved. *
7 *******************************************************************************
8 */
9
10 #ifndef __NOUNIT_H__
11 #define __NOUNIT_H__
12
13
20 #include "unicode/measunit.h"
21
22 #if !UCONFIG_NO_FORMATTING
23
24 U_NAMESPACE_BEGIN
25
26 #ifndef U_HIDE_DRAFT_API
27
32 class U_I18N_API NoUnit: public MeasureUnit {
33 public:
40 static NoUnit U_EXPORT2 base();
41
48 static NoUnit U_EXPORT2 percent();
49
56 static NoUnit U_EXPORT2 permille();
57
62 NoUnit(const NoUnit& other);
63
69 virtual UObject* clone() const;
70
79 virtual UClassID getDynamicClassID() const;
80
87 static UClassID U_EXPORT2 getStaticClassID();
88
93 virtual ~NoUnit();
94
95 private:
100 NoUnit(const char* subtype);
101
102 };
103 #endif /* U_HIDE_DRAFT_API */
104
105 U_NAMESPACE_END
106
107 #endif /* #if !UCONFIG_NO_FORMATTING */
108
109 #endif // __NOUNIT_H__
110 //eof
111 //
icu::NoUnit
Dimensionless unit for percent and permille.
Definition: nounit.h:32
icu::MeasureUnit
A unit such as length, mass, volume, currency, etc.
Definition: measunit.h:38
icu::MeasureUnit::getStaticClassID
static UClassID getStaticClassID(void)
Return the class ID for this class.
UClassID
void * UClassID
UClassID is used to identify classes without using the compiler&#39;s RTTI.
Definition: uobject.h:93
icu::MeasureUnit::clone
virtual UObject * clone() const
Returns a polymorphic clone of this object.
icu::MeasureUnit::getDynamicClassID
virtual UClassID getDynamicClassID(void) const
Returns a unique class ID POLYMORPHICALLY.
U_I18N_API
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
Definition: utypes.h:360
U_NAMESPACE_BEGIN
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:131
measunit.h
C++ API: A unit for measuring a quantity.
U_NAMESPACE_END
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:132
icu::UObject
UObject is the common ICU "boilerplate" class.
Definition: uobject.h:223