It models a property definition. More...
#include <Property.h>
  
Public Member Functions | |
| virtual Property * | clone () const =0 | 
| It returns a clone of the object.  More... | |
| const std::string & | getDatasetName () const | 
| It returns the name of the propery's dataset.  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... | |
| virtual bool | has (Property *p) const =0 | 
| It checks if the Property "p" is associated to this property or any other parent.  More... | |
| Property & | operator= (const Property &rhs) | 
| Assignment operator.  More... | |
| Property (const Property &rhs) | |
| Copy constructor.  More... | |
| Property (const std::string &name, int datatype, unsigned int id=0, Property *parent=0, const std::string &dsName="") | |
| It initializes a new Property.  More... | |
| void | setDatasetName (const std::string &dsName) | 
| It sets the property name.  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... | |
| virtual | ~Property () | 
| Virtual destructor.  More... | |
Protected Attributes | |
| std::string | m_datasetName | 
| The property's dataset name.  More... | |
| unsigned int | m_id | 
| An identification number that can be used internally.  More...  | |
| std::string | m_name | 
| The property name.  More... | |
| Property * | m_parent | 
| The parent property type: it must be a CompositeProperty.  More... | |
| int | m_type | 
| The property data type.  More... | |
It models a property definition.
The class Property defines information about the values of a given property. This includes:
Definition at line 59 of file Property.h.
| te::dt::Property::Property | ( | const std::string & | name, | 
| int | datatype, | ||
| unsigned int | id = 0,  | 
        ||
| Property * | parent = 0,  | 
        ||
| const std::string & | dsName = ""  | 
        ||
| ) | 
| te::dt::Property::Property | ( | const Property & | rhs | ) | 
Copy constructor.
| rhs | The right-hand-side copy used to copy from. | 
      
  | 
  inlinevirtual | 
Virtual destructor.
Definition at line 89 of file Property.h.
      
  | 
  pure virtual | 
It returns a clone of the object.
The new Property may not have associations to other elements. For example, a DataSetType associated to a DataSourceCatalog when cloned will not have the clone associate to the same DataSourceCatalog.
Implemented in te::da::DataSetType, te::dt::ArrayProperty, te::dt::BitProperty, te::dt::ByteArrayProperty, te::dt::CompositeProperty, te::dt::DateTimeProperty, te::dt::NumericProperty, te::dt::SimpleProperty, te::dt::StringProperty, te::gm::GeometryProperty, and te::rst::RasterProperty.
Referenced by te::da::ForeignKey::add(), te::da::Index::add(), te::da::PrimaryKey::add(), te::da::UniqueKey::add(), te::da::ForeignKey::addRefProperty(), and te::dt::new_clone().
      
  | 
  inline | 
It returns the name of the propery's dataset.
Definition at line 144 of file Property.h.
      
  | 
  inline | 
It returns the property identifier.
Definition at line 109 of file Property.h.
      
  | 
  inline | 
It returns the property name.
Definition at line 127 of file Property.h.
      
  | 
  inline | 
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 property data type.
Definition at line 161 of file Property.h.
Referenced by te::dt::CompositeProperty::findFirstPropertyOfType().
      
  | 
  pure virtual | 
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. | 
Implemented in te::dt::CompositeProperty, and te::dt::SimpleProperty.
Assignment operator.
| rhs | The right-hand-side copy used to copy from. | 
      
  | 
  inline | 
It sets the property name.
| name | The new property name. | 
Definition at line 154 of file Property.h.
      
  | 
  inline | 
It sets the property identifier.
| id | A number used to identify the property. | 
Definition at line 118 of file Property.h.
      
  | 
  inline | 
It sets the property name.
| name | The new property name. | 
Definition at line 137 of file Property.h.
      
  | 
  inline | 
It associate this property to the informed parent.
| p | Teh parent property. | 
Definition at line 177 of file Property.h.
      
  | 
  protected | 
The property's dataset name.
Definition at line 208 of file Property.h.
      
  | 
  protected | 
An identification number that can be used internally. 
 
Definition at line 205 of file Property.h.
      
  | 
  protected | 
The property name.
Definition at line 207 of file Property.h.
      
  | 
  protected | 
The parent property type: it must be a CompositeProperty.
Definition at line 204 of file Property.h.
      
  | 
  protected | 
The property data type.
Definition at line 206 of file Property.h.