29 #ifndef _CEGUIPropertySet_h_
30 #define _CEGUIPropertySet_h_
32 #include "CEGUI/Base.h"
33 #include "CEGUI/String.h"
34 #include "CEGUI/IteratorBase.h"
35 #include "CEGUI/Property.h"
36 #include "CEGUI/PropertyHelper.h"
37 #include "CEGUI/TypedProperty.h"
40 #include "CEGUI/TplWindowProperty.h"
41 #include "CEGUI/Exceptions.h"
45 # pragma warning(push)
46 # pragma warning(disable : 4251)
86 void addProperty(
Property* property);
99 void removeProperty(
const String& name);
122 void clearProperties(
void);
135 bool isPropertyPresent(
const String& name)
const;
150 const String& getPropertyHelp(
const String& name)
const;
176 PropertyRegistry::const_iterator pos = d_properties.find(name);
178 if (pos == d_properties.end())
183 Property* baseProperty = pos->second;
214 void setProperty(
const String& name,
const String& value);
225 PropertyRegistry::iterator pos = d_properties.find(name);
227 if (pos == d_properties.end())
232 Property* baseProperty = pos->second;
258 bool isPropertyDefault(
const String& name)
const;
276 PropertyRegistry d_properties;
290 PropertyIterator getPropertyIterator(
void)
const;
305 #define CEGUI_DEFINE_PROPERTY(class_type, property_native_type, name, help, setter, getter, default_value)\
307 static ::CEGUI::TplWindowProperty<class_type, property_native_type> sProperty(\
308 name, help, propertyOrigin, setter, getter, default_value);\
310 this->addProperty(&sProperty);\
327 #define CEGUI_DEFINE_PROPERTY_NO_XML(class_type, property_native_type, name, help, setter, getter, default_value)\
329 static ::CEGUI::TplWindowProperty<class_type, property_native_type> sProperty(\
330 name, help, propertyOrigin, setter, getter, default_value, false);\
332 this->addProperty(&sProperty);\
337 #if defined(_MSC_VER)
338 # pragma warning(pop)
341 #endif // end of guard _CEGUIPropertySet_h_