Go to the documentation of this file.
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,
278 #endif // __TERRALIB_DATATYPE_INTERNAL_DATETIMEPROPERTY_H
DateTimeStringFormat m_strFormat
The string format when the data type is STRING_TIME.
DateTimeOrdinalType
The meaning of the ordial time.
unsigned int getPrecision() const
It returns the count of decimal digits in the fractional part, to the right of the decimal point.
A class to represent time instant.
void setSubtype(DateTimeType t)
It sets the date time property sub type.
void setStrFormat(DateTimeStringFormat f)
It sets the string format.
DateTimeStringFormat getStrFormat() const
It returns the string format.
TemporalResolution m_tempResolution
The temporal resolution.
void setOrdinalType(DateTimeOrdinalType t)
It sets the ordinal type.
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.
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.
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.
TimeInstant getOrdinalStartTime() const
It returns the start time associated to the user-defined ordinal date and time.
Enumerations of XML module.
unsigned int m_precision
Number of digits for the right of the decimal point of a numeric value.
DateTimeType m_dSubType
The sub-type of this date time property.
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.
A temporal resolution is composed of a unit of time and a value.
void setPrecision(unsigned int precision)
Sets the count of decimal digits in the fractional part, to the right of the decimal point.
TimeInstant m_ordinalStartTime
The start time when the ordinal type is USER_DEFINED.
An atomic property like an integer or double.
void setResolution(TemporalResolution t)
It sets the temporal resolution.
An atomic property like an integer or double.
DateTimeProperty & operator=(const DateTimeProperty &rhs)
Assignment operator.
TemporalResolution getResolution() const
It returns the temporal resolution.
void setOrdinalStartTime(TimeInstant t)
It sets the start time associated to the user-defined ordinal date and time.
It models a property definition.
Property * clone() const
It returns a clone of the object.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
DateTimeStringFormat
The format of a string that represents a date and time.
DateTimeOrdinalType m_ordinalType
The ordinal type when the data type is ORDINAL_TIME.
A class to represent time instant.
The type for date and time types: date, date period, date duration, time duration,...
DateTimeType getSubType() const
It returns the date time property sub type.
~DateTimeProperty()
Destructor.
DateTimeType
The subtype of date and time type, based on ISO 8621.
DateTimeProperty(const DateTimeProperty &rhs)
Copy constructor.
DateTimeOrdinalType getOrdinalType() const
It returns the ordinal type, when the date and time is represented by a ordinal number.