A base class for a compound property (non-atomic properties). More...
#include <CompositeProperty.h>
  
Public Member Functions | |
| void | add (const boost::ptr_vector< te::dt::Property > &ps) | 
| void | add (const std::vector< Property * > &ps) | 
| It adds a list of property types to the CompositeProperty.  More... | |
| void | add (Property *p) | 
| It adds a new property to the CompositeProperty.  More... | |
| virtual void | clear () | 
| It clears the CompositeProperty definition.  More... | |
| virtual Property * | clone () const | 
| It returns a clone of the object.  More... | |
| CompositeProperty (const CompositeProperty &rhs) | |
| Copy constructor.  More... | |
| CompositeProperty (const std::string &cname, const std::string &name, unsigned int id=0, Property *parent=0) | |
| It creates a new CompositeProperty.  More... | |
| void | copy (const std::vector< Property * > &ps) | 
| It copies the properties from the vector.  More... | |
| Property * | findFirstPropertyOfType (const int t) const | 
| returns the first property of the given data type. Caller doesn't take ownership of the returned pointer.  More... | |
| const std::string & | getCompositeName () const | 
| It returns the name of the composite type.  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... | |
| std::vector< Property * > & | getProperties () | 
| It returns the list of properties describing the CompositeProperty.  More... | |
| const std::vector< Property * > & | getProperties () const | 
| It returns the list of properties describing the CompositeProperty.  More... | |
| Property * | getProperty (const std::string &name) const | 
| It returns the property with the given name or NULL if none is found.  More... | |
| Property * | getProperty (std::size_t i) const | 
| It returns the i-th property.  More... | |
| Property * | getPropertyById (unsigned int id) const | 
| It searches for a property with the given ID.  More... | |
| std::size_t | getPropertyPosition (const Property *p) const | 
| It returns the property position .  More... | |
| std::size_t | getPropertyPosition (const std::string &name) const | 
| It returns the property position based on its name.  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 | hasPropertyOfType (const int t) const | 
| Tells if there is a property of the given data type.  More... | |
| void | insert (std::size_t position, Property *p) | 
| It inserts a new property to the CompositeProperty.  More... | |
| CompositeProperty & | operator= (const CompositeProperty &rhs) | 
| Assignment operator.  More... | |
| virtual void | remove (Property *p) | 
| It removes the property from the composite.  More... | |
| void | setCompositeName (const std::string &cname) | 
| It sets the composite type name.  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... | |
| std::size_t | size () const | 
| It returns the number of properties of the CompositeProperty.  More... | |
| virtual | ~CompositeProperty () | 
| Virtual destructor.  More... | |
Protected Member Functions | |
| CompositeProperty (const std::string &cname, const std::string &name, int t, unsigned int id, Property *parent) | |
| It creates a new Property.  More... | |
Protected Attributes | |
| std::string | m_cname | 
| The composite type name.  More... | |
| 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... | |
| std::vector< Property * > | m_properties | 
| The list of property types that make the CompositeProperty.  More... | |
| int | m_type | 
| The property data type.  More... | |
A base class for a compound property (non-atomic properties).
Definition at line 51 of file CompositeProperty.h.
| te::dt::CompositeProperty::CompositeProperty | ( | const std::string & | cname, | 
| const std::string & | name, | ||
| unsigned int | id = 0,  | 
        ||
| Property * | parent = 0  | 
        ||
| ) | 
It creates a new CompositeProperty.
| cname | The composite type name. | 
| name | The property name. | 
| id | The property identifier. | 
| parent | A reference to the parent Property of the new object if it has one. | 
| te::dt::CompositeProperty::CompositeProperty | ( | const CompositeProperty & | rhs | ) | 
Copy constructor.
| rhs | The right-hand-side copy used to copy from. | 
      
  | 
  virtual | 
Virtual destructor.
      
  | 
  protected | 
| void te::dt::CompositeProperty::add | ( | const boost::ptr_vector< te::dt::Property > & | ps | ) | 
| void te::dt::CompositeProperty::add | ( | const std::vector< Property * > & | ps | ) | 
It adds a list of property types to the CompositeProperty.
| ps | The list of properties to be added. | 
| void te::dt::CompositeProperty::add | ( | Property * | p | ) | 
It adds a new property to the CompositeProperty.
| p | The property to be inserted. | 
      
  | 
  virtual | 
It clears the CompositeProperty definition.
Reimplemented in te::da::DataSetType.
      
  | 
  virtual | 
It returns a clone of the object.
The new property will NOT have associations to other elements.
Implements te::dt::Property.
Reimplemented in te::da::DataSetType.
| void te::dt::CompositeProperty::copy | ( | const std::vector< Property * > & | ps | ) | 
It copies the properties from the vector.
| ps | The list of properties to be copied. | 
      
  | 
  inline | 
returns the first property of the given data type. Caller doesn't take ownership of the returned pointer.
Definition at line 292 of file CompositeProperty.h.
References te::dt::Property::getType(), m_properties, and size().
Referenced by hasPropertyOfType().
      
  | 
  inline | 
It returns the name of the composite type.
Definition at line 96 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It returns the name of the propery's dataset.
Definition at line 144 of file Property.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 list of properties describing the CompositeProperty.
Definition at line 174 of file CompositeProperty.h.
      
  | 
  inline | 
It returns the list of properties describing the CompositeProperty.
Definition at line 167 of file CompositeProperty.h.
| Property* te::dt::CompositeProperty::getProperty | ( | const std::string & | name | ) | const | 
It returns the property with the given name or NULL if none is found.
| name | The name of the property we are looking for. | 
      
  | 
  inline | 
It returns the i-th property.
| i | The property position in the property array. | 
Definition at line 185 of file CompositeProperty.h.
| Property* te::dt::CompositeProperty::getPropertyById | ( | unsigned int | id | ) | const | 
It searches for a property with the given ID.
| id | The property ID. | 
| std::size_t te::dt::CompositeProperty::getPropertyPosition | ( | const Property * | p | ) | const | 
It returns the property position .
| p | The property. | 
| std::size_t te::dt::CompositeProperty::getPropertyPosition | ( | const std::string & | name | ) | const | 
It returns the property position based on its name.
| name | The property name. | 
      
  | 
  inlineinherited | 
It returns the property data type.
Definition at line 161 of file Property.h.
Referenced by findFirstPropertyOfType().
      
  | 
  virtual | 
It checks if the Property "p" is associated to this property or any other parent.
| p | The Property we are checking. | 
Implements te::dt::Property.
      
  | 
  inline | 
Tells if there is a property of the given data type.
Definition at line 287 of file CompositeProperty.h.
References findFirstPropertyOfType().
Referenced by te::da::DataSetType::hasRaster().
| void te::dt::CompositeProperty::insert | ( | std::size_t | position, | 
| Property * | p | ||
| ) | 
It inserts a new property to the CompositeProperty.
| position | The position where the property will be inserted | 
| p | The property to be inserted. | 
| CompositeProperty& te::dt::CompositeProperty::operator= | ( | const CompositeProperty & | rhs | ) | 
Assignment operator.
| rhs | The right-hand-side copy used to copy from. | 
      
  | 
  virtual | 
It removes the property from the composite.
| p | The property to be removed from the composite. | 
      
  | 
  inline | 
It sets the composite type name.
| name | The composite type name. | 
Definition at line 103 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It sets the property name.
| name | The new property name. | 
Definition at line 154 of file Property.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.
      
  | 
  inline | 
It returns the number of properties of the CompositeProperty.
Definition at line 160 of file CompositeProperty.h.
Referenced by findFirstPropertyOfType().
      
  | 
  protected | 
The composite type name.
Definition at line 283 of file CompositeProperty.h.
      
  | 
  protectedinherited | 
The property's dataset name.
Definition at line 208 of file Property.h.
      
  | 
  protectedinherited | 
An identification number that can be used internally. 
 
Definition at line 205 of file Property.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 list of property types that make the CompositeProperty.
Definition at line 284 of file CompositeProperty.h.
Referenced by findFirstPropertyOfType().
      
  | 
  protectedinherited | 
The property data type.
Definition at line 206 of file Property.h.