26 #ifndef __TERRALIB_DATATYPE_INTERNAL_DATEPERIOD_H
27 #define __TERRALIB_DATATYPE_INTERNAL_DATEPERIOD_H
33 #include <boost/date_time/gregorian/gregorian_types.hpp>
79 DatePeriod(
const boost::gregorian::date& begin,
const boost::gregorian::date& end);
86 const boost::gregorian::date_period&
getDatePeriod()
const {
return m_datePeriod; }
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.
A class to represent date period based on the Gregorian Calendar.
DatePeriod(const boost::gregorian::date_period &dp)
Constructor.
DatePeriod(const boost::gregorian::date &begin, const boost::gregorian::date &end)
It creates a period as [begin, end).
bool operator!=(const DateTime &rhs) const
Operator !=.
bool operator==(const DateTime &rhs) const
Operator ==.
std::string toString() const
It returns the date period in the ISO textual format (YYYYMMDDTYYYYMMDD).
bool operator<(const DateTime &rhs) const
Operator <.
virtual ~DatePeriod()
Destructor.
Date getFinalDate() const
It gets the final date.
AbstractData * clone() const
It returns a clone of this object.
bool operator>(const DateTime &rhs) const
Operator >
boost::gregorian::date_period m_datePeriod
The internal date period information.
DateTimeInstant * getFinalInstant() const
It gets the final date time instant.
DateTimeInstant * getInitialInstant() const
It gets the initial date time instant.
DateTimeType getDateTimeType() const
It returns the subtype of the date and time type.
const boost::gregorian::date_period & getDatePeriod() const
It returns the boost date period type.
Date getInitialDate() const
It gets the initial date.
DatePeriod(const Date &initialDate, const Date &finalDate)
Constructor.
boost::gregorian::date_period & getDatePeriod()
It returns the boost date period type.
An abstract class to represent an instant of date and time.
An abstract class to represent a period of date and time.
A base class for date data types.
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.