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