An abstract class to represent an instant of date and time. More...
#include <DateTimeInstant.h>
Public Member Functions | |
virtual AbstractData * | clone () const =0 |
It returns a clone of this object. More... | |
DateTimeInstant () | |
Default constructor. More... | |
virtual DateTimeType | getDateTimeType () const =0 |
It returns the subtype of the date and time type. 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 | ~DateTimeInstant () |
Virtual destructor. More... | |
An abstract class to represent an instant of date and time.
Definition at line 43 of file DateTimeInstant.h.
|
inline |
Default constructor.
Definition at line 48 of file DateTimeInstant.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 51 of file DateTimeInstant.h.
|
pure virtualinherited |
It returns a clone of this object.
Implemented in te::da::DataAccess, te::vp::ComplexData< T >, terralib4::Raster, te::rst::SynchronizedRaster, te::rst::ProxyRaster, te::mem::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::gm::PolyhedralSurface, te::gm::Polygon, te::gm::Point, te::gm::MultiSurface, te::gm::MultiPolygon, te::gm::MultiPoint, te::gm::MultiLineString, te::gm::MultiCurve, te::gm::LineString, te::gm::LinearRing, te::gm::Line, te::gm::GeometryCollection, te::gm::CurvePolygon, te::gm::CompoundCurve, te::gm::CircularString, te::gdal::Raster, te::dt::TimePeriodTZ, te::dt::TimePeriod, te::dt::TimeInstantTZ, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::SimpleData< T *, typeCode >, te::dt::SimpleData< T, typeCode >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, te::dt::OrdinalPeriod, te::dt::OrdinalInstant, te::dt::DatePeriod, te::dt::DateDuration, te::dt::Date, te::dt::CompositeData, te::dt::ByteArray, and te::dt::Array.
Referenced by te::dt::new_clone().
|
pure virtualinherited |
It returns the subtype of the date and time type.
Implemented in te::dt::TimePeriodTZ, te::dt::TimePeriod, te::dt::TimeInstantTZ, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::OrdinalPeriod, te::dt::OrdinalInstant, te::dt::DatePeriod, te::dt::DateDuration, and te::dt::Date.
|
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::TimePeriodTZ, te::dt::TimePeriod, te::dt::TimeInstantTZ, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::OrdinalPeriod, te::dt::OrdinalInstant, te::dt::DatePeriod, te::dt::DateDuration, and te::dt::Date.
|
pure virtualinherited |
Operator <.
rhs | The date and time to be compared. |
Implemented in te::dt::TimePeriodTZ, te::dt::TimePeriod, te::dt::TimeInstantTZ, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::OrdinalPeriod, te::dt::OrdinalInstant, te::dt::DatePeriod, te::dt::DateDuration, and te::dt::Date.
|
pure virtualinherited |
Operator ==.
rhs | The date and time to be compared. |
Implemented in te::dt::TimePeriodTZ, te::dt::TimePeriod, te::dt::TimeInstantTZ, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::OrdinalPeriod, te::dt::OrdinalInstant, te::dt::DatePeriod, te::dt::DateDuration, and te::dt::Date.
|
pure virtualinherited |
Operator >
rhs | The right-hand-side time duration to be compared. |
Implemented in te::dt::TimePeriodTZ, te::dt::TimePeriod, te::dt::TimeInstantTZ, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::OrdinalPeriod, te::dt::OrdinalInstant, te::dt::DatePeriod, te::dt::DateDuration, and te::dt::Date.
|
pure virtualinherited |
It returns the data value in a string notation.
Implemented in te::rst::Raster, te::da::DataAccess, te::vp::ComplexData< T >, te::gm::Geometry, te::dt::TimePeriodTZ, te::dt::TimePeriod, te::dt::TimeInstantTZ, te::dt::TimeInstant, te::dt::TimeDuration, te::dt::SimpleData< T *, typeCode >, te::dt::SimpleData< T, typeCode >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, te::dt::OrdinalPeriod, te::dt::OrdinalInstant, te::dt::DatePeriod, te::dt::DateDuration, te::dt::Date, te::dt::CompositeData, te::dt::ByteArray, and te::dt::Array.