26 #ifndef __TERRALIB_DATATYPE_INTERNAL_PROPERTY_H
27 #define __TERRALIB_DATATYPE_INTERNAL_PROPERTY_H
108 unsigned int getId()
const {
return m_id; }
117 void setId(
unsigned int id) { m_id = id; }
126 const std::string&
getName()
const {
return m_name; }
136 void setName(
const std::string& name) { m_name = name; }
171 virtual bool has(
Property* p)
const = 0;
182 virtual Property* clone()
const = 0;
203 #endif // __TERRALIB_DATATYPE_INTERNAL_PROPERTY_H
Property * m_parent
The parent property type: it must be a CompositeProperty.
virtual ~Property()
Virtual destructor.
virtual Property * clone() const =0
It returns a clone of the object.
std::string m_name
The property name.
It models a property definition.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
void setId(unsigned int id)
It sets the property identifier.
Configuration flags for the DataType module of TerraLib.
void setName(const std::string &name)
It sets the property name.
Property * getParent() const
It returns the parent of this property, or NULL, if it doesn't have one.
int getType() const
It returns the property data type.
General enumerations for the data type module.
unsigned int m_id
An identification number that can be used internally.
int m_type
The property data type.
unsigned int getId() const
It returns the property identifier.
AbstractData * new_clone(const AbstractData &a)
For use with boost conteiners.
const std::string & getName() const
It returns the property name.
void setParent(Property *p)
It associate this property to the informed parent.