26 #ifndef __TERRALIB_DATATYPE_INTERNAL_PROPERTY_H
27 #define __TERRALIB_DATATYPE_INTERNAL_PROPERTY_H
77 const std::string& dsName =
"");
109 unsigned int getId()
const {
return m_id; }
118 void setId(
unsigned int id) { m_id = id; }
127 const std::string&
getName()
const {
return m_name; }
137 void setName(
const std::string& name) { m_name = name; }
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.
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.
const std::string & getDatasetName() const
It returns the name of the propery's dataset.
virtual bool has(Property *p) const =0
It checks if the Property "p" is associated to this property or any other parent.
const std::string & getName() const
It returns the property name.
virtual Property * clone() const =0
It returns a clone of the object.
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.
void setId(unsigned int id)
It sets the property identifier.
Property(const Property &rhs)
Copy constructor.
Property & operator=(const Property &rhs)
Assignment operator.
Property * getParent() const
It returns the parent of this property, or NULL, if it doesn't have one.
unsigned int getId() const
It returns the property identifier.
int getType() const
It returns the property data type.
AbstractData * new_clone(const AbstractData &a)
For use with boost conteiners.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).
Enumerations of XML module.