26#ifndef __TERRALIB_DATATYPE_INTERNAL_PROPERTY_H
27#define __TERRALIB_DATATYPE_INTERNAL_PROPERTY_H
77 const std::string& dsName =
"");
It models a property definition.
void setDatasetName(const std::string &dsName)
It sets the property name.
void setName(const std::string &name)
It sets the property name.
virtual Property * clone() const =0
It returns a clone of the object.
void setParent(Property *p)
It associate this property to the informed parent.
std::string m_datasetName
The property's dataset name.
unsigned int m_id
An identification number that can be used internally.
Property * m_parent
The parent property type: it must be a CompositeProperty.
virtual bool has(Property *p) const =0
It checks if the Property "p" is associated to this property or any other parent.
Property * getParent() const
It returns the parent of this property, or NULL, if it doesn't have one.
virtual ~Property()
Virtual destructor.
std::string m_name
The property name.
Property(const std::string &name, int datatype, unsigned int id=0, Property *parent=0, const std::string &dsName="")
It initializes a new Property.
int m_type
The property data type.
const std::string & getName() const
It returns the property name.
const std::string & getDatasetName() const
It returns the name of the propery's dataset.
void setId(unsigned int id)
It sets the property identifier.
Property(const Property &rhs)
Copy constructor.
Property & operator=(const Property &rhs)
Assignment operator.
unsigned int getId() const
It returns the property identifier.
int getType() const
It returns the property data type.
General enumerations for the data type module.
Namespace for the Data Type module of TerraLib.
AbstractData * new_clone(const AbstractData &a)
For use with boost conteiners.
Configuration flags for the DataType module of TerraLib.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.