26 #ifndef __TERRALIB_DATATYPE_INTERNAL_TIMEPERIOD_H
27 #define __TERRALIB_DATATYPE_INTERNAL_TIMEPERIOD_H
33 #include <boost/date_time/posix_time/posix_time.hpp>
86 const boost::posix_time::time_period&
getTimePeriod()
const {
return m_timePeriod; }
93 boost::posix_time::time_period&
getTimePeriod() {
return m_timePeriod; }
An abstract class to represent a period of date and time.
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.
An abstract class to represent a period of date and time.
A class to represent time instant.
A class to represent time period.
TimePeriod(const TimeInstant &initialTime, const TimeInstant &finalTime)
Constructor.
const boost::posix_time::time_period & getTimePeriod() const
Assignment operator.
TimeInstant getFinalTimeInstant() const
It gets the final time instant.
DateTimeInstant * getFinalInstant() const
It gets the final date time instant.
std::string toString() const
It returns the time period in the ISO textual format (YYYYMMDDThhmmss/YYYYMMDDThhmmss).
DateTimeType getDateTimeType() const
It returns the subtype of the date and time type.
bool operator>(const DateTime &rhs) const
Operator >
bool operator<(const DateTime &rhs) const
Operator <.
DateTimeInstant * getInitialInstant() const
It gets the initial date time instant.
TimeInstant getInitialTimeInstant() const
It gets the initial time instant.
bool operator!=(const DateTime &rhs) const
Operator !=.
TimePeriod(const boost::posix_time::time_period &t)
Constructor.
boost::posix_time::time_period m_timePeriod
Time period information.
virtual ~TimePeriod()
Destructor.
bool operator==(const DateTime &rhs) const
Operator ==.
AbstractData * clone() const
It returns a clone of this object.
boost::posix_time::time_period & getTimePeriod()
It returns the boost time period type.
DateTimeType
The subtype of date and time type, based on ISO 8621.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.