27 #ifndef _CEGUIXMLAttributes_h_
28 #define _CEGUIXMLAttributes_h_
30 #include "CEGUI/Base.h"
31 #include "CEGUI/String.h"
35 # pragma warning(push)
36 # 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, StringFastLessCompare> AttributeMap;
238 AttributeMap d_attrs;
244 #if defined(_MSC_VER)
245 # pragma warning(pop)
248 #endif // end of guard _CEGUIXMLAttributes_h_
Definition: MemoryAllocatedObject.h:109
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Class representing a block of attributes associated with an XML element.
Definition: XMLAttributes.h:46
String class used within the GUI system.
Definition: String.h:62