An abstract class to represent a period of date and time. More...
#include <DateTimePeriod.h>
Public Member Functions | |
virtual AbstractData * | clone () const =0 |
It returns a clone of this object. More... | |
DateTimePeriod () | |
Default constructor. More... | |
virtual DateTimeType | getDateTimeType () const =0 |
It returns the subtype of the date and time type. More... | |
virtual DateTimeInstant * | getFinalInstant () const =0 |
It gets the final date time instant. More... | |
virtual DateTimeInstant * | getInitialInstant () const =0 |
It gets the initial date time instant. More... | |
int | getTypeCode () const |
It returns the data type code associated to date and time values: DATETIME_TYPE. More... | |
virtual bool | operator!= (const DateTime &) const =0 |
Operator !=. More... | |
virtual bool | operator< (const DateTime &) const =0 |
Operator <. More... | |
virtual bool | operator== (const DateTime &) const =0 |
Operator ==. More... | |
virtual bool | operator> (const DateTime &) const =0 |
Operator > More... | |
virtual std::string | toString () const =0 |
It returns the data value in a string notation. More... | |
virtual | ~DateTimePeriod () |
Virtual destructor. More... | |
An abstract class to represent a period of date and time.
A time period is a part of the continous time axis limited by two time instants or points.
Definition at line 48 of file DateTimePeriod.h.
te::dt::DateTimePeriod::DateTimePeriod | ( | ) |
Default constructor.
|
virtual |
Virtual destructor.
|
pure virtualinherited |
It returns a clone of this object.
Implemented in te::dt::ByteArray, te::dt::SimpleData< T *, typeCode >, te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimeDuration, te::dt::Date, te::dt::TimeInstant, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::Array, te::idl::IdlRaster, te::gm::LineString, te::mem::ExpansibleRaster, te::gm::CircularString, te::dt::TimeInstantTZ, te::gm::PointKd, te::dt::DateDuration, te::gm::CompoundCurve, te::gm::LinearRing, te::gm::MultiPolygon, te::dt::CompositeData, te::gm::PointZM, te::mem::CachedRaster, te::gm::PointM, te::gm::PointZ, te::gm::Line, te::gm::Point, te::dt::OrdinalInstant, te::gm::CurvePolygon, te::gm::GeometryCollection, te::gdal::Raster, te::gm::PolyhedralSurface, te::gm::Polygon, te::gm::MultiLineString, te::gm::MultiPoint, te::rst::SynchronizedRaster, te::gm::MultiSurface, te::dt::SimpleData< T, typeCode >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, te::gm::MultiCurve, te::rst::ProxyRaster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
Referenced by te::rst::PolygonIterator< T >::decompose(), and te::dt::new_clone().
|
pure virtualinherited |
It returns the subtype of the date and time type.
Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimeDuration, te::dt::Date, te::dt::TimeInstant, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstantTZ, te::dt::DateDuration, and te::dt::OrdinalInstant.
|
pure virtual |
It gets the final date time instant.
Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, and te::dt::OrdinalPeriod.
|
pure virtual |
It gets the initial date time instant.
Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, and te::dt::OrdinalPeriod.
|
inlinevirtualinherited |
It returns the data type code associated to date and time values: DATETIME_TYPE.
Implements te::dt::AbstractData.
Definition at line 103 of file DateTime.h.
References te::dt::DATETIME_TYPE.
|
pure virtualinherited |
Operator !=.
rhs | The date and time to be compared. |
Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::Date, te::dt::DateDuration, te::dt::OrdinalInstant, and te::dt::TimeInstantTZ.
|
pure virtualinherited |
Operator <.
rhs | The date and time to be compared. |
Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::Date, te::dt::DateDuration, te::dt::OrdinalInstant, and te::dt::TimeInstantTZ.
|
pure virtualinherited |
Operator ==.
rhs | The date and time to be compared. |
Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::Date, te::dt::DateDuration, te::dt::OrdinalInstant, and te::dt::TimeInstantTZ.
|
pure virtualinherited |
Operator >
rhs | The right-hand-side time duration to be compared. |
Implemented in te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::Date, te::dt::DateDuration, te::dt::OrdinalInstant, and te::dt::TimeInstantTZ.
|
pure virtualinherited |
It returns the data value in a string notation.
Implemented in te::gm::Geometry, te::rst::Raster, te::dt::ByteArray, te::dt::SimpleData< T *, typeCode >, te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimeDuration, te::dt::Date, te::dt::TimeInstant, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::Array, te::dt::CompositeData, te::dt::TimeInstantTZ, te::dt::DateDuration, te::dt::OrdinalInstant, te::dt::SimpleData< T, typeCode >, and te::dt::SimpleData< boost::int64_t, INT64_TYPE >.