28 #ifndef _CEGUIXMLAttributes_h_
29 #define _CEGUIXMLAttributes_h_
31 #include "CEGUIBase.h"
32 #include "CEGUIString.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
76 void add(
const String& attrName,
const String& attrValue);
88 void remove(
const String& attrName);
101 bool exists(
const String& attrName)
const;
110 size_t getCount(
void)
const;
128 const String& getName(
size_t index)
const;
146 const String& getValue(
size_t index)
const;
196 bool getValueAsBool(
const String& attrName,
bool def =
false)
const;
215 int getValueAsInteger(
const String& attrName,
int def = 0)
const;
234 float getValueAsFloat(
const String& attrName,
float def = 0.0f)
const;
237 typedef std::map<String, String, String::FastLessCompare> AttributeMap;
238 AttributeMap d_attrs;
244 #if defined(_MSC_VER)
245 # pragma warning(pop)
248 #endif // end of guard _CEGUIXMLAttributes_h_
Class representing a block of attributes associated with an XML element.
Definition: CEGUIXMLAttributes.h:47
String class used within the GUI system.
Definition: CEGUIString.h:57