27#ifndef _CEGUIXMLAttributes_h_
28#define _CEGUIXMLAttributes_h_
30#include "CEGUI/Base.h"
31#include "CEGUI/String.h"
36# pragma warning(disable : 4251)
237 typedef std::map<String, String, StringFastLessCompare> AttributeMap;
238 AttributeMap d_attrs;
Definition: MemoryAllocatedObject.h:110
String class used within the GUI system.
Definition: String.h:64
Class representing a block of attributes associated with an XML element.
Definition: XMLAttributes.h:48
const String & getValue(size_t index) const
Return the value string of an attribute based upon its index within the attribute block.
const String & getValueAsString(const String &attrName, const String &def="") const
Return the value of attribute attrName as a string.
const String & getName(size_t index) const
Return the name of an attribute based upon its index within the attribute block.
const String & getValue(const String &attrName) const
Return the value string for attribute attrName.
int getValueAsInteger(const String &attrName, int def=0) const
Return the value of attribute attrName as a integer value.
XMLAttributes(void)
XMLAttributes constructor.
void remove(const String &attrName)
Removes an attribute from the attribute block.
size_t getCount(void) const
Return the number of attributes in the attribute block.
virtual ~XMLAttributes(void)
XMLAttributes Destructor.
bool getValueAsBool(const String &attrName, bool def=false) const
Return the value of attribute attrName as a boolean value.
bool exists(const String &attrName) const
Return whether the named attribute exists within the attribute block.
void add(const String &attrName, const String &attrValue)
Adds an attribute to the attribute block. If the attribute value already exists, it is replaced with ...
float getValueAsFloat(const String &attrName, float def=0.0f) const
Return the value of attribute attrName as a floating point value.
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1