00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __DTINTRV_H__
00013 #define __DTINTRV_H__
00014
00015 #include "unicode/utypes.h"
00016 #include "unicode/uobject.h"
00017
00024 U_NAMESPACE_BEGIN
00025
00026
00032 class U_COMMON_API DateInterval : public UObject {
00033 public:
00034
00041 DateInterval(UDate fromDate, UDate toDate);
00042
00047 virtual ~DateInterval();
00048
00054 UDate getFromDate() const;
00055
00061 UDate getToDate() const;
00062
00063
00075 static UClassID U_EXPORT2 getStaticClassID(void);
00076
00088 virtual UClassID getDynamicClassID(void) const;
00089
00090
00095 DateInterval(const DateInterval& other);
00096
00101 DateInterval& operator=(const DateInterval&);
00102
00108 virtual UBool operator==(const DateInterval& other) const;
00109
00115 UBool operator!=(const DateInterval& other) const;
00116
00117
00124 virtual DateInterval* clone() const;
00125
00126 private:
00131 DateInterval();
00132
00133 UDate fromDate;
00134 UDate toDate;
00135
00136 } ;
00137
00138
00139 inline UDate
00140 DateInterval::getFromDate() const {
00141 return fromDate;
00142 }
00143
00144
00145 inline UDate
00146 DateInterval::getToDate() const {
00147 return toDate;
00148 }
00149
00150
00151 inline UBool
00152 DateInterval::operator!=(const DateInterval& other) const {
00153 return ( !operator==(other) );
00154 }
00155
00156
00157 U_NAMESPACE_END
00158
00159 #endif