Loading...
Searching...
No Matches
te::dt::DateTime Class Referenceabstract

#include <DateTime.h>

Inheritance diagram for te::dt::DateTime:
te::dt::AbstractData te::dt::DateDuration te::dt::DateTimeInstant te::dt::DateTimePeriod te::dt::TimeDuration te::dt::Date te::dt::OrdinalInstant te::dt::TimeInstant te::dt::TimeInstantTZ te::dt::DatePeriod te::dt::OrdinalPeriod te::dt::TimePeriod te::dt::TimePeriodTZ

Public Member Functions

virtual AbstractDataclone () const =0
 It returns a clone of this object.
 
 DateTime ()
 Default constructor.
 
virtual DateTimeType getDateTimeType () const =0
 It returns the subtype of the date and time type.
 
int getTypeCode () const
 It returns the data type code associated to date and time values: DATETIME_TYPE.
 
virtual bool operator!= (const DateTime &) const =0
 Operator !=.
 
virtual bool operator< (const DateTime &) const =0
 Operator <.
 
virtual bool operator== (const DateTime &) const =0
 Operator ==.
 
virtual bool operator> (const DateTime &) const =0
 Operator >
 
virtual std::string toString () const =0
 It returns the data value in a string notation.
 
virtual ~DateTime ()
 Virtual destructor.
 

Detailed Description

Definition at line 55 of file DateTime.h.

Constructor & Destructor Documentation

◆ DateTime()

◆ ~DateTime()

virtual te::dt::DateTime::~DateTime ( )
inlinevirtual

Virtual destructor.

Definition at line 113 of file DateTime.h.

Member Function Documentation

◆ clone()

virtual AbstractData * te::dt::AbstractData::clone ( ) const
pure virtualinherited

It returns a clone of this object.

Returns
A clone of this object.

Implemented in te::da::DataAccess, te::dt::Array, te::dt::ByteArray, te::dt::CompositeData, te::dt::Date, te::dt::DateDuration, te::dt::DatePeriod, te::dt::OrdinalInstant, te::dt::OrdinalPeriod, te::dt::SimpleData< T, typeCode >, te::dt::SimpleData< bool, BOOLEAN_TYPE >, te::dt::SimpleData< bool, BOOLEAN_TYPE >, te::dt::SimpleData< boost::int16_t, INT16_TYPE >, te::dt::SimpleData< boost::int16_t, INT16_TYPE >, te::dt::SimpleData< boost::int32_t, INT32_TYPE >, te::dt::SimpleData< boost::int32_t, INT32_TYPE >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, te::dt::SimpleData< boost::uint16_t, UINT16_TYPE >, te::dt::SimpleData< boost::uint16_t, UINT16_TYPE >, te::dt::SimpleData< boost::uint32_t, UINT32_TYPE >, te::dt::SimpleData< boost::uint32_t, UINT32_TYPE >, te::dt::SimpleData< boost::uint64_t, UINT64_TYPE >, te::dt::SimpleData< boost::uint64_t, UINT64_TYPE >, te::dt::SimpleData< char, CHAR_TYPE >, te::dt::SimpleData< char, CHAR_TYPE >, te::dt::SimpleData< double, DOUBLE_TYPE >, te::dt::SimpleData< double, DOUBLE_TYPE >, te::dt::SimpleData< float, FLOAT_TYPE >, te::dt::SimpleData< float, FLOAT_TYPE >, te::dt::SimpleData< std::string, NUMERIC_TYPE >, te::dt::SimpleData< std::string, NUMERIC_TYPE >, te::dt::SimpleData< std::string, STRING_TYPE >, te::dt::SimpleData< std::string, STRING_TYPE >, te::dt::SimpleData< T *, typeCode >, te::dt::SimpleData< T *, typeCode >, te::dt::SimpleData< unsigned char, UCHAR_TYPE >, te::dt::SimpleData< unsigned char, UCHAR_TYPE >, te::dt::TimeDuration, te::dt::TimeInstant, te::dt::TimeInstantTZ, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::gdal::Raster, te::gm::CircularString, te::gm::CompoundCurve, te::gm::CurvePolygon, te::gm::GeometryCollection, te::gm::Line, te::gm::LinearRing, te::gm::LineString, te::gm::MultiCurve, te::gm::MultiLineString, te::gm::MultiPoint, te::gm::MultiPolygon, te::gm::MultiSurface, te::gm::Point, te::gm::Polygon, te::gm::PolyhedralSurface, te::mem::CachedRaster, te::mem::ExpansibleRaster, te::mem::Raster, te::rst::GainOffsetProxyRaster, te::rst::ProxyRaster, te::rst::SynchronizedRaster, te::vp::ComplexData< T >, and terralib4::Raster.

References AbstractData().

Referenced by te::dt::new_clone().

◆ getDateTimeType()

virtual DateTimeType te::dt::DateTime::getDateTimeType ( ) const
pure virtual

It returns the subtype of the date and time type.

Returns
The subtype of the date and time type.

Implemented in te::dt::Date, te::dt::DateDuration, te::dt::DatePeriod, te::dt::OrdinalInstant, te::dt::OrdinalPeriod, te::dt::TimeDuration, te::dt::TimeInstant, te::dt::TimeInstantTZ, te::dt::TimePeriod, and te::dt::TimePeriodTZ.

◆ getTypeCode()

int te::dt::DateTime::getTypeCode ( ) const
inlinevirtual

It returns the data type code associated to date and time values: DATETIME_TYPE.

Returns
The data type code associated to the date and time values: DATETIME_TYPE.

Implements te::dt::AbstractData.

Definition at line 103 of file DateTime.h.

References te::dt::DATETIME_TYPE.

◆ operator!=()

virtual bool te::dt::DateTime::operator!= ( const DateTime & ) const
pure virtual

Operator !=.

Parameters
rhsThe date and time to be compared.
Returns
It returns true if the two date and time are not equal. Otherwise, it returns false.

Implemented in te::dt::Date, te::dt::DateDuration, te::dt::DatePeriod, te::dt::OrdinalInstant, te::dt::OrdinalPeriod, te::dt::TimeDuration, te::dt::TimeInstant, te::dt::TimeInstantTZ, te::dt::TimePeriod, and te::dt::TimePeriodTZ.

References DateTime().

◆ operator<()

virtual bool te::dt::DateTime::operator< ( const DateTime & ) const
pure virtual

Operator <.

Parameters
rhsThe date and time to be compared.
Returns
It returns true if the right-hand-side time is greater than the lefth side one. Otherwise, it returns false.

Implemented in te::dt::Date, te::dt::DateDuration, te::dt::DatePeriod, te::dt::OrdinalInstant, te::dt::OrdinalPeriod, te::dt::TimeDuration, te::dt::TimeInstant, te::dt::TimeInstantTZ, te::dt::TimePeriod, and te::dt::TimePeriodTZ.

References DateTime().

◆ operator==()

virtual bool te::dt::DateTime::operator== ( const DateTime & ) const
pure virtual

Operator ==.

Parameters
rhsThe date and time to be compared.
Returns
It returns true if the two date and time are equal. Otherwise, it returns false.

Implemented in te::dt::Date, te::dt::DateDuration, te::dt::DatePeriod, te::dt::OrdinalInstant, te::dt::OrdinalPeriod, te::dt::TimeDuration, te::dt::TimeInstant, te::dt::TimeInstantTZ, te::dt::TimePeriod, and te::dt::TimePeriodTZ.

References DateTime().

◆ operator>()

virtual bool te::dt::DateTime::operator> ( const DateTime & ) const
pure virtual

Operator >

Parameters
rhsThe right-hand-side time duration to be compared.
Returns
It returns true if the right-hand-side time duration is less than the lefth side one. Otherwise, it returns false.

Implemented in te::dt::Date, te::dt::DateDuration, te::dt::DatePeriod, te::dt::OrdinalInstant, te::dt::OrdinalPeriod, te::dt::TimeDuration, te::dt::TimeInstant, te::dt::TimeInstantTZ, te::dt::TimePeriod, and te::dt::TimePeriodTZ.

References DateTime().

◆ toString()

virtual std::string te::dt::AbstractData::toString ( ) const
pure virtualinherited

It returns the data value in a string notation.

Returns
The data value in a string notation.

Implemented in te::da::DataAccess, te::dt::Array, te::dt::ByteArray, te::dt::CompositeData, te::dt::Date, te::dt::DateDuration, te::dt::DatePeriod, te::dt::OrdinalInstant, te::dt::OrdinalPeriod, te::dt::SimpleData< T, typeCode >, te::dt::SimpleData< bool, BOOLEAN_TYPE >, te::dt::SimpleData< bool, BOOLEAN_TYPE >, te::dt::SimpleData< boost::int16_t, INT16_TYPE >, te::dt::SimpleData< boost::int16_t, INT16_TYPE >, te::dt::SimpleData< boost::int32_t, INT32_TYPE >, te::dt::SimpleData< boost::int32_t, INT32_TYPE >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, te::dt::SimpleData< boost::uint16_t, UINT16_TYPE >, te::dt::SimpleData< boost::uint16_t, UINT16_TYPE >, te::dt::SimpleData< boost::uint32_t, UINT32_TYPE >, te::dt::SimpleData< boost::uint32_t, UINT32_TYPE >, te::dt::SimpleData< boost::uint64_t, UINT64_TYPE >, te::dt::SimpleData< boost::uint64_t, UINT64_TYPE >, te::dt::SimpleData< char, CHAR_TYPE >, te::dt::SimpleData< char, CHAR_TYPE >, te::dt::SimpleData< double, DOUBLE_TYPE >, te::dt::SimpleData< double, DOUBLE_TYPE >, te::dt::SimpleData< float, FLOAT_TYPE >, te::dt::SimpleData< float, FLOAT_TYPE >, te::dt::SimpleData< std::string, NUMERIC_TYPE >, te::dt::SimpleData< std::string, NUMERIC_TYPE >, te::dt::SimpleData< std::string, STRING_TYPE >, te::dt::SimpleData< std::string, STRING_TYPE >, te::dt::SimpleData< T *, typeCode >, te::dt::SimpleData< T *, typeCode >, te::dt::SimpleData< unsigned char, UCHAR_TYPE >, te::dt::SimpleData< unsigned char, UCHAR_TYPE >, te::dt::TimeDuration, te::dt::TimeInstant, te::dt::TimeInstantTZ, te::dt::TimePeriod, te::dt::TimePeriodTZ, te::gm::Geometry, te::rst::Raster, and te::vp::ComplexData< T >.


The documentation for this class was generated from the following file: