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... | |
| 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 std::string &name, int datatype, unsigned int id=0, Property *parent=0) | |
| It initializes a new Property.  More... | |
| Property (const Property &rhs) | |
| Copy constructor.  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 | |
| 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  | 
        ||
| ) | 
It initializes a new Property.
| name | The Property name. | 
| datatype | The property data type. | 
| id | The property identifier. | 
| parent | A reference to the parent Property of the new object. | 
Definition at line 29 of file Property.cpp.
| te::dt::Property::Property | ( | const Property & | rhs | ) | 
Copy constructor.
| rhs | The right-hand-side copy used to copy from. | 
Definition at line 40 of file Property.cpp.
      
  | 
  inlinevirtual | 
Virtual destructor.
Definition at line 88 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::CompositeProperty, te::rst::RasterProperty, te::gm::GeometryProperty, te::dt::SimpleProperty, te::dt::StringProperty, te::dt::DateTimeProperty, te::dt::NumericProperty, te::dt::ArrayProperty, te::dt::ByteArrayProperty, and te::dt::BitProperty.
Referenced by te::dt::CompositeProperty::add(), te::dt::ArrayProperty::ArrayProperty(), te::graph::QueryGraphBuilder::build(), te::dt::CompositeProperty::copy(), te::vp::IntersectionMemory::createDataSetType(), te::graph::DataSourceGraphMetadata::createGraphTableEdgeModel(), te::graph::DataSourceGraphMetadata::createVertexAttrTable(), te::graph::FlowGraphBuilder::createVertexObjects(), te::da::DataSetTypeConverter::DataSetTypeConverter(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::PrimaryKeyConstraintWidget::getConstraint(), te::qt::widgets::UniqueKeyConstraintWidget::getConstraint(), te::vp::GeometricOp::GetDataSetType(), terralib4::Transactor::getDataSetType(), te::pgis::Transactor::getDataSetType(), te::qt::widgets::IndexWidget::getIndex(), te::stmem::Transactor::getProperties(), te::mem::DataSource::getProperty(), te::stmem::Transactor::getProperty(), te::map::QueryLayer::getSchema(), te::dt::new_clone(), te::dt::ArrayProperty::operator=(), te::vp::AggregationQuery::run(), and te::vp::IntersectionQuery::run().
      
  | 
  inline | 
It returns the property identifier.
Definition at line 108 of file Property.h.
Referenced by te::da::DataSetTypeConverter::DataSetTypeConverter(), te::pgis::Transactor::getConstraints(), te::pgis::Transactor::getIndexes(), te::pgis::Transactor::getPropertyId(), and te::serialize::xml::Save().
      
  | 
  inline | 
It returns the property name.
Definition at line 126 of file Property.h.
Referenced by te::graph::AddDeepAttribute::AddDeepAttribute(), te::graph::DataSourceGraphMetadata::addEdgeProperty(), te::ado::Transactor::addForeignKey(), te::pgis::Transactor::addForeignKey(), te::ado::Transactor::addPrimaryKey(), te::mem::DataSource::addProperty(), te::ogr::Transactor::addProperty(), te::sqlite::DataSourceTransactor::addProperty(), te::ado::Transactor::addProperty(), terralib4::Transactor::addProperty(), te::pgis::Transactor::addProperty(), te::graph::AddRasterAttribute::AddRasterAttribute(), te::da::DataSourceCatalog::addRef(), te::pgis::Transactor::addSequence(), te::ado::Transactor::addUniqueKey(), te::graph::DataSourceGraphMetadata::addVertexProperty(), te::da::DataSourceCatalog::checkFKsDependency(), te::da::DataSourceCatalog::checkSequenceDependency(), te::qt::widgets::DataExchangerWizard::commit(), te::qt::plugins::terralib4::TL4ConverterWizard::commit(), te::qt::widgets::ConstraintWidget::ConstraintWidget(), te::ogr::Convert2OGR(), te::sqlite::Convert2SQLCreate(), te::da::Create(), te::da::CreateAdapter(), te::mem::DataSource::createDataSet(), te::gdal::Transactor::createDataSet(), te::ogr::Transactor::createDataSet(), te::sqlite::DataSourceTransactor::createDataSet(), te::ado::Transactor::createDataSet(), te::pgis::Transactor::createDataSet(), te::vp::IntersectionMemory::createDataSetType(), DataSetAdapterLayerReader(), DataSetAdapterLayerWriter(), te::qt::widgets::DataSetOptionsWizardPage::datasetPressed(), te::da::DataSetType::DataSetType(), te::da::DataSetTypeConverter::DataSetTypeConverter(), te::qt::widgets::DataSetDisplay::draw(), te::map::AbstractLayerRenderer::draw(), te::map::DrawGeometries(), te::map::DrawRaster(), te::da::DataSourceCatalog::dropDependentSequenceEntry(), te::da::DataSourceCatalog::dropDependentSequences(), te::ado::Transactor::dropProperty(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::Selection::executeSelection(), te::qt::widgets::DataSetCategoryItem::fetchMore(), te::qt::widgets::DataSetGroupItem::fetchMore(), te::qt::widgets::DataSetAdapterWidget::fillDataSetTable(), te::ado::Transactor::getCheckConstraints(), te::pgis::Transactor::getConstraints(), terralib4::Transactor::getDataSetType(), te::da::GetEmptyOIDSet(), te::sqlite::DataSourceCatalogLoader::getGeometryInfo(), te::pgis::Transactor::getGeometryInfo(), te::sqlite::DataSourceCatalogLoader::getIndex(), te::sqlite::DataSourceCatalogLoader::getIndexes(), te::ado::Transactor::getIndexes(), te::pgis::Transactor::getIndexes(), te::qt::widgets::Info::getInfo(), te::qt::widgets::ClassifierWizardPage::getInputParams(), te::sqlite::DataSourceCatalogLoader::getPrimaryKey(), te::ado::Transactor::getPrimaryKey(), te::ado::Transactor::getProperties(), te::pgis::Transactor::getPropertyId(), te::da::GetPropertyInfo(), te::stmem::Transactor::getPropertyNames(), te::da::GetPropertyPos(), te::pgis::Transactor::getRasterInfo(), te::sqlite::DataSourceCatalogLoader::getSpatialIndexes(), te::da::GetSQLValueNames(), te::sqlite::DataSourceCatalogLoader::getUniqueKey(), te::sqlite::DataSourceCatalogLoader::getUniqueKeys(), te::ado::Transactor::getUniqueKeys(), te::da::DataSourceCatalog::indexFKs(), te::da::DataSourceCatalog::indexSequenceDependency(), te::qt::widgets::IndexWidget::IndexWidget(), te::ado::Transactor::insertIntoGeometryColumns(), te::qt::widgets::ChartLayerWidget::listAttributes(), te::qt::widgets::GroupingWidget::listAttributes(), te::da::LoadFull(), te::da::LoadProperties(), te::qt::widgets::GroupingWidget::onImportPushButtonClicked(), te::qt::widgets::DatapPropertiesWidget::onInputDataToolButtonTriggered(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), te::qt::widgets::DataPropertiesDialog::onOkPushButtonClicked(), te::qt::widgets::ROIManagerWidget::onPointPicked(), te::qt::widgets::DataSet2Layer::operator()(), te::da::DataSourceCatalog::remove(), te::graph::DataSourceGraphMetadata::removeEdgeProperty(), te::da::DataSourceCatalog::removeRef(), te::graph::DataSourceGraphMetadata::removeVertexProperty(), te::da::DataSourceCatalog::rename(), te::qt::widgets::DataSetTableView::retypeColumn(), te::vp::IntersectionQuery::run(), te::vp::BufferQuery::run(), te::vp::AggregationQuery::run(), te::vp::AggregationMemory::run(), te::serialize::xml::Save(), te::qt::widgets::DataSetOptionsWizardPage::set(), te::qt::widgets::PropertyConverterDialog::set(), and terralib4::TableDataSet::TableDataSet().
      
  | 
  inline | 
It returns the parent of this property, or NULL, if it doesn't have one.
Definition at line 150 of file Property.h.
Referenced by te::dt::CompositeProperty::add(), te::pgis::Transactor::addSequence(), te::da::DataSourceCatalog::checkSequenceDependency(), te::sqlite::Convert2SQLCreate(), te::da::DataSourceCatalog::dropDependentSequenceEntry(), te::da::DataSourceCatalog::dropDependentSequences(), te::ado::Transactor::dropProperty(), te::pgis::Transactor::getPropertyId(), and te::da::DataSourceCatalog::indexSequenceDependency().
      
  | 
  inline | 
It returns the property data type.
Definition at line 143 of file Property.h.
Referenced by te::ado::Transactor::addForeignKey(), te::ado::Transactor::addPrimaryKey(), te::mem::DataSource::addProperty(), te::ogr::Transactor::addProperty(), te::sqlite::DataSourceTransactor::addProperty(), te::ado::Transactor::addProperty(), terralib4::Transactor::addProperty(), te::pgis::Transactor::addProperty(), te::ado::Transactor::addUniqueKey(), te::ogr::Transactor::changePropertyDefinition(), te::graph::LayerRenderer::checkEdgeGeometryProperty(), te::da::DataSourceCatalog::checkSequenceDependency(), te::graph::LayerRenderer::checkVertexGeometryProperty(), te::qt::plugins::terralib4::TL4ConverterWizard::commit(), te::ogr::Convert2OGR(), te::da::CreateAdapter(), te::sqlite::DataSourceTransactor::createDataSet(), te::graph::DataSourceGraphMetadata::createGraphTableEdgeModel(), te::graph::DataSourceGraphMetadata::createVertexAttrTable(), te::da::DataSetTypeConverter::DataSetTypeConverter(), te::da::DataSourceCatalog::dropDependentSequenceEntry(), te::da::DataSourceCatalog::dropDependentSequences(), te::ado::Transactor::dropProperty(), te::qt::widgets::DataSetCategoryItem::fetchMore(), te::qt::widgets::DataSetGroupItem::fetchMore(), te::qt::widgets::DataSetAdapterWidget::fillDataSetTable(), te::dt::CompositeProperty::findFirstPropertyOfType(), te::sqlite::DataSourceCatalogLoader::getDataSetType(), te::da::GetEmptyOIDSet(), te::qt::widgets::WhereClauseWidget::getExpression(), te::da::GetFirstSpatialProperty(), te::pgis::Transactor::getProperties(), te::pgis::Transactor::getProperty(), te::pgis::Transactor::getPropertyId(), te::da::GetPropertyInfo(), te::sqlite::DataSourceCatalogLoader::getSpatialIndexes(), te::sqlite::GetSQLType(), te::pgis::GetSQLValue(), te::vp::IntersectionOp::getTabularProps(), te::da::DataSourceCatalog::indexSequenceDependency(), te::qt::widgets::ChartLayerWidget::listAttributes(), te::qt::widgets::GroupingWidget::listAttributes(), te::da::DataSetTypeConverter::needConverter(), te::qt::widgets::GroupingWidget::onImportPushButtonClicked(), te::qt::widgets::DataSetTableView::retypeColumn(), te::graph::DataSourceGraphMetadata::saveProperty(), te::vp::GeometricOpMemory::SetAggregByAttribute(), and te::pgis::SetColumnDef().
      
  | 
  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.
| te::dt::Property & te::dt::Property::operator= | ( | const Property & | rhs | ) | 
Assignment operator.
| rhs | The right-hand-side copy used to copy from. | 
Definition at line 48 of file Property.cpp.
References m_id, m_name, and m_type.
Referenced by te::dt::CompositeProperty::operator=(), and te::dt::SimpleProperty::operator=().
      
  | 
  inline | 
It sets the property identifier.
| id | A number used to identify the property. | 
Definition at line 117 of file Property.h.
Referenced by te::graph::AddDeepAttribute::AddDeepAttribute(), te::graph::AddRasterAttribute::AddRasterAttribute(), te::graph::LDDGraphBuilder::build(), te::graph::GPMGraphBuilder::createAdjacencyEdges(), te::pgis::Transactor::createDataSet(), te::graph::GPMGraphBuilder::createDistanceEdges(), te::graph::FlowGraphBuilder::createEdgeObjects(), te::graph::GPMGraphBuilder::createVertexObjects(), te::graph::RAGGraphBuilder::createVertexObjects(), te::graph::FlowGraphBuilder::createVertexObjects(), te::pgis::Transactor::getPropertyId(), and te::graph::SpatialWeightsExchanger::importFromGWT().
      
  | 
  inline | 
It sets the property name.
| name | The new property name. | 
Definition at line 136 of file Property.h.
Referenced by te::ogr::Transactor::createDataSet(), te::vp::IntersectionMemory::createDataSetType(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), terralib4::Transactor::getDataSetType(), te::qt::widgets::AddColumnDialog::getNewProperty(), te::qt::widgets::PostGIS2SHPDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2ADODialog::onOkPushButtonClicked(), te::stmem::Transactor::renameDataSet(), and te::vp::IntersectionQuery::run().
      
  | 
  inline | 
It associate this property to the informed parent.
| p | Teh parent property. | 
Definition at line 159 of file Property.h.
Referenced by te::dt::CompositeProperty::add(), te::graph::AddDeepAttribute::AddDeepAttribute(), te::graph::AddRasterAttribute::AddRasterAttribute(), te::dt::ArrayProperty::ArrayProperty(), te::graph::QueryGraphBuilder::build(), te::dt::CompositeProperty::copy(), te::graph::GPMGraphBuilder::createAdjacencyEdges(), te::graph::GPMGraphBuilder::createDistanceEdges(), te::graph::FlowGraphBuilder::createEdgeObjects(), te::graph::DataSourceGraphMetadata::createGraphTableEdgeModel(), te::graph::DataSourceGraphMetadata::createVertexAttrTable(), te::graph::FlowGraphBuilder::createVertexObjects(), te::vp::GeometricOp::GetDataSetType(), te::graph::SpatialWeightsExchanger::importFromGWT(), te::dt::ArrayProperty::operator=(), and te::dt::ArrayProperty::setElementType().
      
  | 
  protected | 
An identification number that can be used internally.
Definition at line 187 of file Property.h.
Referenced by operator=().
      
  | 
  protected | 
      
  | 
  protected | 
The parent property type: it must be a CompositeProperty.
Definition at line 186 of file Property.h.
      
  | 
  protected |