ICU 56.1  56.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tmutamt.h
Go to the documentation of this file.
1 /*
2  *******************************************************************************
3  * Copyright (C) 2009-2010, Google, International Business Machines Corporation and *
4  * others. All Rights Reserved. *
5  *******************************************************************************
6  */
7 
8 #ifndef __TMUTAMT_H__
9 #define __TMUTAMT_H__
10 
11 
17 #include "unicode/measure.h"
18 #include "unicode/tmunit.h"
19 
20 #if !UCONFIG_NO_FORMATTING
21 
23 
24 
32 public:
45  TimeUnitAmount(const Formattable& number,
46  TimeUnit::UTimeUnitFields timeUnitField,
47  UErrorCode& status);
48 
61  TimeUnitAmount(double amount, TimeUnit::UTimeUnitFields timeUnitField,
62  UErrorCode& status);
63 
64 
69  TimeUnitAmount(const TimeUnitAmount& other);
70 
71 
77 
78 
84  virtual UObject* clone() const;
85 
86 
91  virtual ~TimeUnitAmount();
92 
93 
100  virtual UBool operator==(const UObject& other) const;
101 
102 
109  UBool operator!=(const UObject& other) const;
110 
111 
123  static UClassID U_EXPORT2 getStaticClassID(void);
124 
125 
137  virtual UClassID getDynamicClassID(void) const;
138 
139 
145  const TimeUnit& getTimeUnit() const;
146 
152  TimeUnit::UTimeUnitFields getTimeUnitField() const;
153 };
154 
155 
156 
157 inline UBool
158 TimeUnitAmount::operator!=(const UObject& other) const {
159  return !operator==(other);
160 }
161 
163 
164 #endif /* #if !UCONFIG_NO_FORMATTING */
165 
166 #endif // __TMUTAMT_H__
167 //eof
168 //