"Fossies" - the Fresh Open Source Software Archive

Member "nounit_8h_source.html" (3 Oct 2019, 13914 Bytes) of package /linux/misc/icu4c-65_1-docs.zip:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

ICU 65.1  65.1
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 #include "unicode/utypes.h"
14 
15 #if U_SHOW_CPLUSPLUS_API
16 
17 #if !UCONFIG_NO_FORMATTING
18 
19 #include "unicode/measunit.h"
20 
21 #ifndef U_HIDE_DRAFT_API
22 
28 U_NAMESPACE_BEGIN
29 
35 class U_I18N_API NoUnit: public MeasureUnit {
36 public:
43  static NoUnit U_EXPORT2 base();
44 
51  static NoUnit U_EXPORT2 percent();
52 
59  static NoUnit U_EXPORT2 permille();
60 
65  NoUnit(const NoUnit& other);
66 
71  virtual ~NoUnit();
72 
78  virtual NoUnit* clone() const;
79 
88  virtual UClassID getDynamicClassID() const;
89 
96  static UClassID U_EXPORT2 getStaticClassID();
97 
98 private:
103  NoUnit(const char* subtype);
104 
105 };
106 
107 U_NAMESPACE_END
108 
109 #endif /* U_HIDE_DRAFT_API */
110 #endif /* #if !UCONFIG_NO_FORMATTING */
111 
112 #endif /* U_SHOW_CPLUSPLUS_API */
113 
114 #endif // __NOUNIT_H__
115 //eof
116 //
Dimensionless unit for percent and permille.
Definition: nounit.h:35
A unit such as length, mass, volume, currency, etc.
Definition: measunit.h:40
static UClassID getStaticClassID(void)
Return the class ID for this class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Definition: uobject.h:96
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
Definition: utypes.h:301
C++ API: A unit for measuring a quantity.
virtual UClassID getDynamicClassID(void) const
Returns a unique class ID POLYMORPHICALLY.
Basic definitions for ICU, for both C and C++ APIs.
virtual MeasureUnit * clone() const
Returns a polymorphic clone of this object.