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
std::string m_name
The property name.
void setParent(Property *p)
It associate this property to the informed parent.
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.
const std::string & getName() const
It returns the property name.
Property * m_parent
The parent property type: it must be a CompositeProperty.
void setId(unsigned int id)
It sets the property identifier.
void setName(const std::string &name)
It sets the property name.
virtual ~Property()
Virtual destructor.
Property * getParent() const
It returns the parent of this property, or NULL, if it doesn't have one.
int m_type
The property data type.
General enumerations for the data type module.
Configuration flags for the DataType module of TerraLib.
It models a property definition.
int getType() const
It returns the property data type.
unsigned int getId() const
It returns the property identifier.
unsigned int m_id
An identification number that can be used internally.
virtual Property * clone() const =0
It returns a clone of the object.