ICU 56.1
56.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
i18n
unicode
measure.h
Go to the documentation of this file.
1
/*
2
**********************************************************************
3
* Copyright (c) 2004-2015, 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 __MEASURE_H__
12
#define __MEASURE_H__
13
14
#include "
unicode/utypes.h
"
15
21
#if !UCONFIG_NO_FORMATTING
22
23
#include "
unicode/fmtable.h
"
24
25
U_NAMESPACE_BEGIN
26
27
class
MeasureUnit;
28
41
class
U_I18N_API
Measure
:
public
UObject
{
42
public
:
53
Measure
(
const
Formattable
& number,
MeasureUnit
* adoptedUnit,
54
UErrorCode
& ec);
55
60
Measure
(
const
Measure
& other);
61
66
Measure
& operator=(
const
Measure
& other);
67
73
virtual
UObject
* clone()
const
;
74
79
virtual
~
Measure
();
80
86
UBool
operator==
(
const
UObject
& other)
const
;
87
94
inline
const
Formattable
& getNumber()
const
;
95
100
inline
const
MeasureUnit
& getUnit()
const
;
101
113
static
UClassID
U_EXPORT2 getStaticClassID(
void
);
114
126
virtual
UClassID
getDynamicClassID
(
void
)
const
;
127
128
protected
:
133
Measure
();
134
135
private
:
139
Formattable
number;
140
145
MeasureUnit
* unit;
146
};
147
148
inline
const
Formattable
& Measure::getNumber()
const
{
149
return
number;
150
}
151
152
inline
const
MeasureUnit
& Measure::getUnit()
const
{
153
return
*unit;
154
}
155
156
U_NAMESPACE_END
157
158
#endif // !UCONFIG_NO_FORMATTING
159
#endif // __MEASURE_H__
Generated on Wed Oct 7 2015 21:17:56 for ICU 56.1 by
1.8.1.2