ICU 55.1 55.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
tmunit.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * Copyright (C) 2009-2014, Google, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
6 */
7
8 #ifndef __TMUNIT_H__
9 #define __TMUNIT_H__
10
11
18 #include "unicode/measunit.h"
19
20 #if !UCONFIG_NO_FORMATTING
21
22 U_NAMESPACE_BEGIN
23
30 class U_I18N_API TimeUnit: public MeasureUnit {
31 public:
36 enum UTimeUnitFields {
37 UTIMEUNIT_YEAR,
38 UTIMEUNIT_MONTH,
39 UTIMEUNIT_DAY,
40 UTIMEUNIT_WEEK,
41 UTIMEUNIT_HOUR,
42 UTIMEUNIT_MINUTE,
43 UTIMEUNIT_SECOND,
44 UTIMEUNIT_FIELD_COUNT
45 };
46
57 static TimeUnit* U_EXPORT2 createInstance(UTimeUnitFields timeUnitField,
58 UErrorCode& status);
59
60
65 virtual UObject* clone() const;
66
71 TimeUnit(const TimeUnit& other);
72
77 TimeUnit& operator=(const TimeUnit& other);
78
87 virtual UClassID getDynamicClassID() const;
88
95 static UClassID U_EXPORT2 getStaticClassID();
96
97
103 UTimeUnitFields getTimeUnitField() const;
104
109 virtual ~TimeUnit();
110
111 private:
112 UTimeUnitFields fTimeUnitField;
113
118 TimeUnit(UTimeUnitFields timeUnitField);
119
120 };
121
122
123 U_NAMESPACE_END
124
125 #endif /* #if !UCONFIG_NO_FORMATTING */
126
127 #endif // __TMUNIT_H__
128 //eof
129 //