26 #ifndef __TERRALIB_DATATYPE_INTERNAL_DATETIMEPROPERTY_H
27 #define __TERRALIB_DATATYPE_INTERNAL_DATETIMEPROPERTY_H
68 unsigned int precision = 0,
69 bool isRequired =
false,
70 std::string* defaultValue = 0,
93 unsigned int precision = 0,
94 bool isRequired =
false,
95 std::string* defaultValue = 0,
120 unsigned int precision = 0,
121 bool isRequired =
false,
122 std::string* defaultValue = 0,
149 unsigned int precision = 0,
150 bool isRequired =
false,
151 std::string* defaultValue = 0,
An atomic property like an integer or double.
A class to represent time instant.
The type for date and time types: date, date period, date duration, time duration,...
TimeInstant getOrdinalStartTime() const
It returns the start time associated to the user-defined ordinal date and time.
void setSubtype(DateTimeType t)
It sets the date time property sub type.
Property * clone() const
It returns a clone of the object.
DateTimeProperty(const std::string &name, DateTimeType dateType=DATE, unsigned int precision=0, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new date and time property.
DateTimeType getSubType() const
It returns the date time property sub type.
void setStrFormat(DateTimeStringFormat f)
It sets the string format.
unsigned int getPrecision() const
It returns the count of decimal digits in the fractional part, to the right of the decimal point.
TemporalResolution getResolution() const
It returns the temporal resolution.
void setResolution(TemporalResolution t)
It sets the temporal resolution.
DateTimeProperty(const DateTimeProperty &rhs)
Copy constructor.
DateTimeStringFormat m_strFormat
The string format when the data type is STRING_TIME.
DateTimeOrdinalType getOrdinalType() const
It returns the ordinal type, when the date and time is represented by a ordinal number.
DateTimeStringFormat getStrFormat() const
It returns the string format.
void setPrecision(unsigned int precision)
Sets the count of decimal digits in the fractional part, to the right of the decimal point.
DateTimeProperty(const std::string &name, TemporalResolution tmpRes, DateTimeOrdinalType ordType, TimeInstant startTime, unsigned int precision=0, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new date and time property that is represented by ordinal numbers.
void setOrdinalType(DateTimeOrdinalType t)
It sets the ordinal type.
~DateTimeProperty()
Destructor.
DateTimeProperty(const std::string &name, DateTimeType dateType, TemporalResolution tmpRes, unsigned int precision=0, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new date and time property.
TemporalResolution m_tempResolution
The temporal resolution.
unsigned int m_precision
Number of digits for the right of the decimal point of a numeric value.
TimeInstant m_ordinalStartTime
The start time when the ordinal type is USER_DEFINED.
DateTimeType m_dSubType
The sub-type of this date time property.
DateTimeProperty & operator=(const DateTimeProperty &rhs)
Assignment operator.
DateTimeOrdinalType m_ordinalType
The ordinal type when the data type is ORDINAL_TIME.
void setOrdinalStartTime(TimeInstant t)
It sets the start time associated to the user-defined ordinal date and time.
DateTimeProperty(const std::string &name, TemporalResolution tmpRes, DateTimeStringFormat strFormat, unsigned int precision=0, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new date and time property that is represented by string.
It models a property definition.
An atomic property like an integer or double.
A class to represent time instant.
DateTimeStringFormat
The format of a string that represents a date and time.
DateTimeOrdinalType
The meaning of the ordial time.
DateTimeType
The subtype of date and time type, based on ISO 8621.
A temporal resolution is composed of a unit of time and a value.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Enumerations of XML module.