26#ifndef __TERRALIB_DATATYPE_INTERNAL_ORDINALPERIOD_H
27#define __TERRALIB_DATATYPE_INTERNAL_ORDINALPERIOD_H
An abstract class to represent a period of date and time.
A class to represent ordinal time instant.
This file contains several implementations for atomic data types (integers, floats,...
A base class for values that can be retrieved from the data access module.
An abstract class to represent an instant of date and time.
DateTimePeriod()
Default constructor.
A class to represent ordinal time instant.
void setFinalInstant(Int64 ft)
It sets the final time instant.
Int64 getFinalTime() const
It returns the final time instant.
DateTimeInstant * getInitialInstant() const
It gets the initial date time instant.
bool operator==(const DateTime &rhs) const
Operator ==.
DateTimeInstant * getFinalInstant() const
It gets the final date time instant.
void setInitialInstant(Int64 it)
It sets the inital time instant.
OrdinalInstant m_finalInstant
The final time instant information.
std::string toString() const
It returns the time period in a textual format (initialTimeInstant-finalTimeinstant)
bool operator>(const DateTime &rhs) const
Operator >
OrdinalInstant m_initialInstant
The initial time instant information.
OrdinalPeriod()
Empty constructor.
bool operator<(const DateTime &rhs) const
Operator <.
OrdinalPeriod(Int64 it, Int64 ft)
Constructor.
Int64 getInitialTime() const
It returns the inital time instant.
AbstractData * clone() const
It returns a clone of this object.
bool operator!=(const DateTime &rhs) const
Operator !=.
DateTimeType getDateTimeType() const
It returns the subtype of the date and time type.
Namespace for the Data Type module of TerraLib.
DateTimeType
The subtype of date and time type, based on ISO 8621.
SimpleData< boost::int64_t, INT64_TYPE > Int64
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.