29 #ifndef __TERRALIB_LAYOUT_INTERNAL_PROPERTIES_H
30 #define __TERRALIB_LAYOUT_INTERNAL_PROPERTIES_H
34 #include "../enum/AbstractType.h"
35 #include "../Config.h"
36 #include "../enum/EnumType.h"
75 virtual bool addProperty(
Property property);
83 virtual bool removeProperty(std::string name);
97 virtual std::vector<Property> getProperties();
104 virtual std::string getObjectName();
111 virtual void setObjectName(std::string name);
125 virtual void setTypeObj(
EnumType* type);
132 virtual void setHasWindows(
bool windows);
139 virtual bool hasWindows();
147 virtual bool contains(
Property property);
155 virtual Property contains(std::string name);
162 virtual int getHashCode();
169 virtual void setHashCode(
int hashCode);
182 m_objName(objectName),
210 if((*it).getName().compare(name) == 0)
253 bool is_present =
false;
266 property.setName(name);
275 property.setName(
"");
282 m_hasWindows = windows;
297 m_hashcode = hashCode;
virtual int getHashCode()
Returns the hashcode of a MVC component.
Properties(std::string objectName, EnumType *type=0, int hashCode=0)
Constructor.
virtual bool addProperty(Property property)
Adds the specified property to the set of properties for this object.
virtual bool hasWindows()
#define TELAYOUTEXPORT
You can use this macro in order to export/import classes and functions from this module.
virtual ~Properties(void)
Destructor.
std::string m_objName
Object name that owns these properties.
virtual void setHashCode(int hashCode)
Sets the hashcode of a MVC component.
virtual bool removeProperty(std::string name)
Removes a property from the set of properties of this object.
The Properties class represents a persistent set of properties. The Properties can be saved to a file...
virtual std::vector< Property > getProperties()
Returns set of all properties.
virtual void setObjectName(std::string name)
Sets object name that owns these properties.
std::vector< Property > m_properties
set of properties for this object
virtual void setTypeObj(EnumType *type)
Sets object type that owns these properties.
virtual EnumType * getTypeObj()
Returns object type that owns these properties.
virtual std::string getObjectName()
Returns object name that owns these properties.
EnumType * m_typeObj
Object type that owns these properties.
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
virtual bool clear()
Clear set of properties of this object.
virtual void setHasWindows(bool windows)
virtual bool contains(Property property)
Checks if the property is contained within the set of properties.
A property acts like a attribute member of a object and stores the state of this attribute. A set of properties stores the state of an object. Any data type, not included in the convertValue method in the class te::layout::Variant, it will be by default "std::string" value.