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)
46 class CEGUIEXPORT XMLAttributes :
47 public AllocatedObject<XMLAttributes>
60 virtual ~XMLAttributes(
void);
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;
160 const String& getValue(
const String& attrName)
const;
177 const String& getValueAsString(
const String& attrName,
const String& def =
"")
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_
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42