Geometric property. More...
#include <GeometryProperty.h>
 
  
 | Public Member Functions | |
| 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... | |
| Property * | getParent () const | 
| It returns the parent of this property, or NULL, if it doesn't have one.  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... | |
| 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 | 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... | |
| Basic Methods | |
| Basic methods on a GeometryProperty. | |
| GeometryProperty (const std::string &name, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, te::dt::Property *parent=0) | |
| It constructs a new GeometryProperty.  More... | |
| GeometryProperty (const std::string &name, int srid, te::gm::GeomType subtype, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, te::dt::Property *parent=0) | |
| It constructs a new GeometryProperty.  More... | |
| GeometryProperty (const GeometryProperty &rhs) | |
| Copy constructor.  More... | |
| ~GeometryProperty () | |
| Destructor.  More... | |
| int | getSRID () const | 
| It returns the spatial reference system identifier associated to this property.  More... | |
| void | setSRID (int srid) | 
| It sets the spatial reference system identifier associated to this property.  More... | |
| GeomType | getGeometryType () const | 
| It returns the geometry subtype allowed for the property.  More... | |
| void | setGeometryType (GeomType t) | 
| It sets the geometry subtype.  More... | |
| Implementation From Superclass Property | |
| Methods re-implemented from the superclass Property. | |
| te::dt::Property * | clone () const | 
| It returns a clone of the object.  More... | |
| Protected Attributes | |
| std::string | m_datasetName | 
| The property's dataset name.  More... | |
| std::string * | m_defaultValue | 
| Default value.  More... | |
| GeomType | m_geomType | 
| The geometry type.  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... | |
| Property * | m_parent | 
| The parent property type: it must be a CompositeProperty.  More... | |
| int | m_srid | 
| The SRS associated to the property.  More... | |
| int | m_type | 
| The property data type.  More... | |
| Private Member Functions | |
| GeometryProperty & | operator= (const GeometryProperty &rhs) | 
| Assignment operator not allowed.  More... | |
| te::gm::GeometryProperty::GeometryProperty | ( | const std::string & | name, | 
| bool | isRequired = false, | ||
| std::string * | defaultValue = 0, | ||
| unsigned int | id = 0, | ||
| te::dt::Property * | parent = 0 | ||
| ) | 
It constructs a new GeometryProperty.
This constructor will set:
| name | The geometric property name. | 
| isRequired | Tells 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::gm::GeometryProperty::GeometryProperty | ( | const std::string & | name, | 
| int | srid, | ||
| te::gm::GeomType | subtype, | ||
| bool | isRequired = false, | ||
| std::string * | defaultValue = 0, | ||
| unsigned int | id = 0, | ||
| te::dt::Property * | parent = 0 | ||
| ) | 
It constructs a new GeometryProperty.
| name | The geometric property name. | 
| srid | The SRS of the geometries. | 
| t | The subtype of geometries. | 
| isRequired | Indicates if 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::gm::GeometryProperty::GeometryProperty | ( | const GeometryProperty & | rhs | ) | 
Copy constructor.
| rhs | The right-hand-side copy that would be used to copy from. | 
| te::gm::GeometryProperty::~GeometryProperty | ( | ) | 
Destructor.
| 
 | virtual | 
It returns a clone of the object.
The new property will NOT have associations to other elements.
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.
| 
 | inline | 
It returns the geometry subtype allowed for the property.
Definition at line 139 of file GeometryProperty.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.
| 
 | 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 spatial reference system identifier associated to this property.
Definition at line 125 of file GeometryProperty.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.
| 
 | private | 
Assignment operator not allowed.
| rhs | The right-hand-side copy that would be 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. | 
| 
 | inline | 
It sets the geometry subtype.
| t | The geometry subtype. | 
Definition at line 146 of file GeometryProperty.h.
| 
 | 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.
| 
 | 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 spatial reference system identifier associated to this property.
| srid | The SRS id associated to the property. | 
Definition at line 132 of file GeometryProperty.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 geometry type.
Definition at line 180 of file GeometryProperty.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.
| 
 | protectedinherited | 
The parent property type: it must be a CompositeProperty.
Definition at line 204 of file Property.h.
| 
 | protected | 
The SRS associated to the property.
Definition at line 179 of file GeometryProperty.h.
| 
 | protectedinherited | 
The property data type.
Definition at line 206 of file Property.h.