Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATXMLObject Class Reference

CATXMLObject Class Reference
[Common Accessibility Technology [CAT] library]

#include <CATXMLObject.h>

Inheritance diagram for CATXMLObject:

CATGuiObj CATSkin CATWidget CATWindow CATControl CATLayer CATWaitDlg GASPilotWindow CATButton CATControlWnd CATKnob CATLabel CATMenu CATPicture CATPictureMulti CATProgress CATSlider CATSwitch CATSwitchMulti CATComboBox CATTab

List of all members.


Detailed Description

XML Object Base.

Definition at line 30 of file CATXMLObject.h.


Public Member Functions

 CATXMLObject (const CATWChar *type)
virtual ~CATXMLObject ()
 Destructor.
void AddChild (CATXMLObject *child)
 Insert a child object into the theme.
CATUInt32 GetNumChildren ()
 Retrieve number of child xml objects.
CATXMLObjectGetChild (CATUInt32 index) const
void SetParent (CATXMLObject *parent)
CATXMLObjectGetParent ()
CATResult AddAttribute (const CATWChar *key, const CATWChar *value)
int GetNumAttributes ()
CATString GetAttributeKeyByIndex (int index)
CATString GetAttribute (const CATWChar *key)
template<class T>
GetAttribute (const CATWChar *key, T defaultVal)
void SetAttributes (CATXMLAttribs *attribs)
virtual CATResult ParseAttributes ()
const CATWCharGetType ()
 Retrieve the type (the tag name) for the object.
void AppendData (const CATWChar *data, CATInt32 len)
 Append to the character data found between start and end tags of the object.
void SetData (const CATWChar *data)
 Set the data directly.
const CATWCharGetData ()
 Retrieve the data.
CATResult WriteToStream (CATStream *stream)

Static Public Member Functions

static bool CATXMLKeyComp (const CATWChar *g1, const CATWChar *g2)
 Key comparator function.

Protected Attributes

CATWCharfType
 Text type.
CATXMLAttribsfAttribs
 Attributes of the object.
CATXMLObjectfParent
 Parent xml object.
std::vector< CATXMLObject * > fChildren
 Child objects in xml.
std::wstring fData
 Data from xml for object.

The documentation for this class was generated from the following files:
Generated on Mon Feb 11 04:11:28 2008 for Game Accessibility Suite by doxygen 1.5.4