ICU 56.1: tztrans.h Source File

ICU 56.1 56.1

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

- File List
- Globals

tztrans.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * Copyright (C) 2007-2008, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
6 */
7 #ifndef TZTRANS_H
8 #define TZTRANS_H
9
15 #include "unicode/utypes.h"
16
17 #if !UCONFIG_NO_FORMATTING
18
19 #include "unicode/uobject.h"
20
21 U_NAMESPACE_BEGIN
22
23 // Forward declaration
24 class TimeZoneRule;
25
31 class U_I18N_API TimeZoneTransition : public UObject {
32 public:
42 TimeZoneTransition(UDate time, const TimeZoneRule& from, const TimeZoneRule& to);
43
48 TimeZoneTransition();
49
55 TimeZoneTransition(const TimeZoneTransition& source);
56
61 ~TimeZoneTransition();
62
69 TimeZoneTransition* clone(void) const;
70
76 TimeZoneTransition& operator=(const TimeZoneTransition& right);
77
85 UBool operator==(const TimeZoneTransition& that) const;
86
94 UBool operator!=(const TimeZoneTransition& that) const;
95
101 UDate getTime(void) const;
102
108 void setTime(UDate time);
109
115 const TimeZoneRule* getFrom(void) const;
116
123 void setFrom(const TimeZoneRule& from);
124
131 void adoptFrom(TimeZoneRule* from);
132
139 void setTo(const TimeZoneRule& to);
140
147 void adoptTo(TimeZoneRule* to);
148
154 const TimeZoneRule* getTo(void) const;
155
156 private:
157 UDate fTime;
158 TimeZoneRule* fFrom;
159 TimeZoneRule* fTo;
160
161 public:
173 static UClassID U_EXPORT2 getStaticClassID(void);
174
186 virtual UClassID getDynamicClassID(void) const;
187 };
188
189 U_NAMESPACE_END
190
191 #endif /* #if !UCONFIG_NO_FORMATTING */
192
193 #endif // TZTRANS_H
194
195 //eof
icu::UObject::getDynamicClassID
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UDate
double UDate
Date and Time data type.
Definition: utypes.h:201
icu::operator==
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
UClassID
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Definition: uobject.h:91
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:358
icu::TimeZoneRule
TimeZoneRule is a class representing a rule for time zone.
Definition: tzrule.h:32
U_NAMESPACE_BEGIN
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129
icu::operator!=
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
Definition: stringpiece.h:218
icu::TimeZoneTransition
TimeZoneTransition is a class representing a time zone transition.
Definition: tztrans.h:31
uobject.h
C++ API: Common ICU base class UObject.
U_NAMESPACE_END
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
icu::UObject
UObject is the common ICU "boilerplate" class.
Definition: uobject.h:221
UBool
int8_t UBool
The ICU boolean type.
Definition: umachine.h:234