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