00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _CEGUIPropertySet_h_
00027 #define _CEGUIPropertySet_h_
00028
00029 #include "CEGUIBase.h"
00030 #include "CEGUIString.h"
00031 #include "CEGUIIteratorBase.h"
00032 #include "CEGUIProperty.h"
00033 #include <map>
00034
00035
00036 #if defined(_MSC_VER)
00037 # pragma warning(push)
00038 # pragma warning(disable : 4251)
00039 #endif
00040
00041
00042 namespace CEGUI
00043 {
00048 class CEGUIEXPORT PropertySet : public PropertyReceiver
00049 {
00050 public:
00055 PropertySet(void) {}
00056
00057
00062 virtual ~PropertySet(void) {}
00063
00064
00078 void addProperty(Property* property);
00079
00080
00091 void removeProperty(const String& name);
00092
00093
00101 void clearProperties(void);
00102
00103
00114 bool isPropertyPresent(const String& name) const;
00115
00116
00129 const String& getPropertyHelp(const String& name) const;
00130
00131
00144 String getProperty(const String& name) const;
00145
00146
00163 void setProperty(const String& name, const String& value);
00164
00165
00177 bool isPropertyDefault(const String& name) const;
00178
00179
00190 String getPropertyDefault(const String& name) const;
00191
00192 private:
00193 typedef std::map<String, Property*> PropertyRegistry;
00194 PropertyRegistry d_properties;
00195
00196
00197 public:
00198
00199
00200
00201 typedef ConstBaseIterator<PropertyRegistry> PropertyIterator;
00202
00207 PropertyIterator getIterator(void) const;
00208 };
00209
00210 }
00211
00212 #if defined(_MSC_VER)
00213 # pragma warning(pop)
00214 #endif
00215
00216 #endif // end of guard _CEGUIPropertySet_h_