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. More...
#include <DateTimeProperty.h>
Public Member Functions | |
| Property * | clone () const |
| It returns a clone of the object. More... | |
| DateTimeProperty (const std::string &name, DateTimeType dateType=DATE, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0) | |
| It constructs a new date and time property. More... | |
| DateTimeProperty (const std::string &name, DateTimeType dateType, TemporalResolution tmpRes, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0) | |
| It constructs a new date and time property. More... | |
| DateTimeProperty (const std::string &name, TemporalResolution tmpRes, DateTimeStringFormat strFormat, 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. More... | |
| DateTimeProperty (const std::string &name, TemporalResolution tmpRes, DateTimeOrdinalType ordType, TimeInstant startTime, 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. More... | |
| DateTimeProperty (const DateTimeProperty &rhs) | |
| Copy constructor. More... | |
| const std::string & | getDatasetName () const |
| It returns the name of the propery's dataset. More... | |
| std::string * | getDefaultValue () const |
| It returns the default value associated to the property, or NULL if none is associated. More... | |
| unsigned int | getId () const |
| It returns the property identifier. More... | |
| const std::string & | getName () const |
| It returns the property name. More... | |
| TimeInstant | getOrdinalStartTime () const |
| It returns the start time associated to the user-defined ordinal date and time. More... | |
| DateTimeOrdinalType | getOrdinalType () const |
| It returns the ordinal type, when the date and time is represented by a ordinal number. More... | |
| Property * | getParent () const |
| It returns the parent of this property, or NULL, if it doesn't have one. More... | |
| TemporalResolution | getResolution () const |
| It returns the temporal resolution. More... | |
| DateTimeStringFormat | getStrFormat () const |
| It returns the string format. More... | |
| DateTimeType | getSubType () const |
| It returns the date time property sub type. More... | |
| int | getType () const |
| It returns the property data type. More... | |
| bool | has (Property *p) const |
| It checks if the Property "p" is associated to this property or any other parent. More... | |
| bool | isAutoNumber () const |
| It returns true if the attribute is an autonumber, otherwise it returns false. More... | |
| bool | isRequired () const |
| It returns true if the attribute is required, otherwise it returns false. More... | |
| DateTimeProperty & | operator= (const DateTimeProperty &rhs) |
| Assignment operator. More... | |
| void | setAutoNumber (bool a) |
| It tells if the property is an autonumber or not. More... | |
| void | setDatasetName (const std::string &dsName) |
| It sets the property name. More... | |
| void | setDefaultValue (std::string *d) |
| It sets the default value associated to the property, or NULL if none is associated. More... | |
| void | setId (unsigned int id) |
| It sets the property identifier. More... | |
| void | setName (const std::string &name) |
| It sets the property name. More... | |
| void | setOrdinalStartTime (TimeInstant t) |
| It sets the start time associated to the user-defined ordinal date and time. More... | |
| void | setOrdinalType (DateTimeOrdinalType t) |
| It sets the ordinal type. More... | |
| void | setParent (Property *p) |
| It associate this property to the informed parent. More... | |
| void | setRequired (bool r) |
| It tells if the property is required or not. More... | |
| void | setResolution (TemporalResolution t) |
| It sets the temporal resolution. More... | |
| void | setStrFormat (DateTimeStringFormat f) |
| It sets the string format. More... | |
| void | setSubtype (DateTimeType t) |
| It sets the date time property sub type. More... | |
| ~DateTimeProperty () | |
| Destructor. More... | |
Protected Attributes | |
| std::string | m_datasetName |
| The property's dataset name. More... | |
| std::string * | m_defaultValue |
| Default value. More... | |
| DateTimeType | m_dSubType |
| The sub-type of this date time property. More... | |
| unsigned int | m_id |
| An identification number that can be used internally. More... | |
| bool | m_isAutoNumber |
| A flag that indicates if this is an autonumber or serial type. More... | |
| bool | m_isRequired |
| This flag indicates if the attribute is required or not. More... | |
| std::string | m_name |
| The property name. More... | |
| TimeInstant | m_ordinalStartTime |
| The start time when the ordinal type is USER_DEFINED. More... | |
| DateTimeOrdinalType | m_ordinalType |
| The ordinal type when the data type is ORDINAL_TIME. More... | |
| Property * | m_parent |
| The parent property type: it must be a CompositeProperty. More... | |
| DateTimeStringFormat | m_strFormat |
| The string format when the data type is STRING_TIME. More... | |
| TemporalResolution | m_tempResolution |
| The temporal resolution. More... | |
| int | m_type |
| The property data type. More... | |
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.
Definition at line 47 of file DateTimeProperty.h.
| te::dt::DateTimeProperty::DateTimeProperty | ( | const std::string & | name, |
| DateTimeType | dateType = DATE, |
||
| bool | isRequired = false, |
||
| std::string * | defaultValue = 0, |
||
| unsigned int | id = 0, |
||
| Property * | parent = 0 |
||
| ) |
It constructs a new date and time property.
| name | The attribute name. |
| dateType | The date and time subtype. |
| isRequired | It indicates if the the property is required (mandatory) or not. |
| defaultValue | The default value to be used, if none is informed. |
| id | The property identifier. |
| parent | A reference to the parent Property of the new object if it has one. |
| te::dt::DateTimeProperty::DateTimeProperty | ( | const std::string & | name, |
| DateTimeType | dateType, | ||
| TemporalResolution | tmpRes, | ||
| bool | isRequired = false, |
||
| std::string * | defaultValue = 0, |
||
| unsigned int | id = 0, |
||
| Property * | parent = 0 |
||
| ) |
It constructs a new date and time property.
| name | The attribute name. |
| dateType | The date and time subtype. |
| tmpRes | The temporal resolution. |
| isRequired | It indicates if the the property is required (mandatory) or not. |
| defaultValue | The default value to be used, if none is informed. |
| id | The property identifier. |
| parent | A reference to the parent Property of the new object if it has one. |
| te::dt::DateTimeProperty::DateTimeProperty | ( | const std::string & | name, |
| TemporalResolution | tmpRes, | ||
| DateTimeStringFormat | strFormat, | ||
| 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.
| name | The attribute name. |
| tmpRes | The temporal resolution. |
| strFormat | The format of the string that represents a time information |
| isRequired | It indicates if the the property is required (mandatory) or not. |
| defaultValue | The default value to be used, if none is informed. |
| id | The property identifier. |
| parent | A reference to the parent Property of the new object if it has one. |
| te::dt::DateTimeProperty::DateTimeProperty | ( | const std::string & | name, |
| TemporalResolution | tmpRes, | ||
| DateTimeOrdinalType | ordType, | ||
| TimeInstant | startTime, | ||
| 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.
| name | The attribute name. |
| tmpRes | The temporal resolution. |
| ordType | The type of the ordinal time |
| startTime | The start time when the ordinal type is USER_DEFINED |
| isRequired | It indicates if the the property is required (mandatory) or not. |
| defaultValue | The default value to be used, if none is informed. |
| id | The property identifier. |
| parent | A reference to the parent Property of the new object if it has one. |
| te::dt::DateTimeProperty::DateTimeProperty | ( | const DateTimeProperty & | rhs | ) |
Copy constructor.
| rhs | The right-hand-side copy used to copy from. |
|
inline |
Destructor.
Definition at line 155 of file DateTimeProperty.h.
|
virtual |
It returns a clone of the object.
The new property will NOT have associations to other properties.
Reimplemented from te::dt::SimpleProperty.
|
inlineinherited |
It returns the name of the propery's dataset.
Definition at line 144 of file Property.h.
|
inlineinherited |
It returns the default value associated to the property, or NULL if none is associated.
Definition at line 127 of file SimpleProperty.h.
|
inlineinherited |
It returns the property identifier.
Definition at line 109 of file Property.h.
|
inlineinherited |
It returns the property name.
Definition at line 127 of file Property.h.
|
inline |
It returns the start time associated to the user-defined ordinal date and time.
Definition at line 227 of file DateTimeProperty.h.
|
inline |
It returns the ordinal type, when the date and time is represented by a ordinal number.
Definition at line 213 of file DateTimeProperty.h.
|
inlineinherited |
It returns the parent of this property, or NULL, if it doesn't have one.
Definition at line 168 of file Property.h.
|
inline |
It returns the temporal resolution.
Definition at line 185 of file DateTimeProperty.h.
|
inline |
It returns the string format.
Definition at line 199 of file DateTimeProperty.h.
|
inline |
It returns the date time property sub type.
Definition at line 171 of file DateTimeProperty.h.
|
inlineinherited |
It returns the property data type.
Definition at line 161 of file Property.h.
Referenced by te::dt::CompositeProperty::findFirstPropertyOfType().
|
virtualinherited |
It checks if the Property "p" is associated to this property or any other parent.
This method can be used to ask if a given Property belongs to a more complex type (like: CompositeProperty or DataSetType).
| p | The Property we are checking. |
Implements te::dt::Property.
|
inlineinherited |
It returns true if the attribute is an autonumber, otherwise it returns false.
Definition at line 111 of file SimpleProperty.h.
|
inlineinherited |
It returns true if the attribute is required, otherwise it returns false.
Definition at line 97 of file SimpleProperty.h.
| DateTimeProperty& te::dt::DateTimeProperty::operator= | ( | const DateTimeProperty & | rhs | ) |
Assignment operator.
| rhs | The right-hand-side copy used to copy from. |
|
inlineinherited |
It tells if the property is an autonumber or not.
| a | If true the property is marked as an autonumber (serial), otherwise it is not. |
Definition at line 118 of file SimpleProperty.h.
Referenced by te::pgis::Convert2TerraLib().
|
inlineinherited |
It sets the property name.
| name | The new property name. |
Definition at line 154 of file Property.h.
|
inherited |
It sets the default value associated to the property, or NULL if none is associated.
| d | The default value associated to the property, or NULL if none is associated. |
|
inlineinherited |
It sets the property identifier.
| id | A number used to identify the property. |
Definition at line 118 of file Property.h.
|
inlineinherited |
It sets the property name.
| name | The new property name. |
Definition at line 137 of file Property.h.
|
inline |
It sets the start time associated to the user-defined ordinal date and time.
| t | The start time associated to the user-defined ordinal date and time. |
Definition at line 234 of file DateTimeProperty.h.
|
inline |
It sets the ordinal type.
| t | The ordinal type, when the date and time is represented by a ordinal number |
Definition at line 220 of file DateTimeProperty.h.
|
inlineinherited |
It associate this property to the informed parent.
| p | Teh parent property. |
Definition at line 177 of file Property.h.
|
inlineinherited |
It tells if the property is required or not.
| r | If true the property is marked as required, otherwise it is not required. |
Definition at line 104 of file SimpleProperty.h.
|
inline |
It sets the temporal resolution.
| r | The temporal resolution. |
Definition at line 192 of file DateTimeProperty.h.
|
inline |
It sets the string format.
| f | The format of the string that represents the date and time |
Definition at line 206 of file DateTimeProperty.h.
|
inline |
It sets the date time property sub type.
| t | The date time property sub type. |
Definition at line 178 of file DateTimeProperty.h.
|
protectedinherited |
The property's dataset name.
Definition at line 208 of file Property.h.
|
protectedinherited |
Default value.
Definition at line 164 of file SimpleProperty.h.
|
protected |
The sub-type of this date time property.
Definition at line 247 of file DateTimeProperty.h.
|
protectedinherited |
An identification number that can be used internally.
Definition at line 205 of file Property.h.
|
protectedinherited |
A flag that indicates if this is an autonumber or serial type.
Definition at line 163 of file SimpleProperty.h.
|
protectedinherited |
This flag indicates if the attribute is required or not.
Definition at line 162 of file SimpleProperty.h.
|
protectedinherited |
The property name.
Definition at line 207 of file Property.h.
|
protected |
The start time when the ordinal type is USER_DEFINED.
Definition at line 251 of file DateTimeProperty.h.
|
protected |
The ordinal type when the data type is ORDINAL_TIME.
Definition at line 250 of file DateTimeProperty.h.
|
protectedinherited |
The parent property type: it must be a CompositeProperty.
Definition at line 204 of file Property.h.
|
protected |
The string format when the data type is STRING_TIME.
Definition at line 249 of file DateTimeProperty.h.
|
protected |
The temporal resolution.
Definition at line 248 of file DateTimeProperty.h.
|
protectedinherited |
The property data type.
Definition at line 206 of file Property.h.