SimXMLDocument

Engine/source/console/SimXMLDocument.h

More...

Protected Types

Parent 

Private Attributes

TiXmlAttribute *
Vector< TiXmlElement * >
TiXmlDocument *

Public Functions

addComment(const char * comment)
addData(const char * text)
addNewElement(const char * rName)
addText(const char * text)
const char *
attribute(const char * rAttribute)
bool
attributeExists(const char * rAttribute)
const char *
const char *
bool
loadFile(const char * rFileName)
bool
nextSiblingElement(const char * rName)
bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

parse(const char * rText)
bool

Process constructor options. (ie, new SimObject(1,2,3))

bool
bool
pushNewElement(const char * rName)
const char *
removeAttribute(const char * rAttribute)
bool
saveFile(const char * rFileName)
bool
setAttribute(const char * rAttribute, const char * rVal)
setObjectAttributes(const char * objectID)

Public Static Functions

Detailed Description

Protected Types

typedef SimObject Parent 

Private Attributes

TiXmlAttribute * m_CurrentAttribute 
Vector< TiXmlElement * > m_paNode 
TiXmlDocument * m_qDocument 

Public Functions

SimXMLDocument()

~SimXMLDocument()

addComment(const char * comment)

addData(const char * text)

addHeader(void )

addNewElement(const char * rName)

addText(const char * text)

attribute(const char * rAttribute)

attributeExists(const char * rAttribute)

clear(void )

clearError(void )

DECLARE_CONOBJECT(SimXMLDocument )

elementValue()

firstAttribute()

getData()

getErrorDesc(void )

getText()

lastAttribute()

loadFile(const char * rFileName)

nextAttribute()

nextSiblingElement(const char * rName)

onAdd()

Reimplemented from: SimObject

onRemove()

Reimplemented from: SimObject

parse(const char * rText)

popElement(void )

prevAttribute()

processArguments(S32 argc, ConsoleValueRef * argv)

Reimplemented from: SimObject

pushChildElement(S32 index)

pushFirstChildElement(const char * rName)

pushNewElement(const char * rName)

readComment(S32 index)

removeAttribute(const char * rAttribute)

removeText()

reset(void )

saveFile(const char * rFileName)

saveToString(String & str)

setAttribute(const char * rAttribute, const char * rVal)

setObjectAttributes(const char * objectID)

Public Static Functions

initPersistFields()