ICU 4.8.1.1  4.8.1.1
dtintrv.h
Go to the documentation of this file.
00001 /*
00002 *******************************************************************************
00003 * Copyright (C) 2008-2009, International Business Machines Corporation and
00004 * others. All Rights Reserved.
00005 *******************************************************************************
00006 *
00007 * File DTINTRV.H 
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:
00130     DateInterval();
00131 
00132     UDate fromDate;
00133     UDate toDate;
00134 
00135 } ;// end class DateInterval
00136 
00137 
00138 inline UDate 
00139 DateInterval::getFromDate() const { 
00140     return fromDate; 
00141 }
00142 
00143 
00144 inline UDate 
00145 DateInterval::getToDate() const { 
00146     return toDate; 
00147 }
00148 
00149 
00150 inline UBool 
00151 DateInterval::operator!=(const DateInterval& other) const { 
00152     return ( !operator==(other) );
00153 }
00154 
00155 
00156 U_NAMESPACE_END
00157 
00158 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines