RavEngine
Loading...
Searching...
No Matches
physx::Sn::XmlNodeReader Struct Reference
Inheritance diagram for physx::Sn::XmlNodeReader:
[legend]
Collaboration diagram for physx::Sn::XmlNodeReader:
[legend]

Public Member Functions

 XmlNodeReader (XmlNode *inCurrentNode, PxAllocatorCallback &inAllocator, CMemoryPoolManager &nodePoolManager)
 
virtual bool read (const char *inName, const char *&outData)
 
virtual bool read (const char *inName, PxSerialObjectId &outId)
 
virtual bool gotoChild (const char *inName)
 
virtual bool gotoFirstChild ()
 
virtual bool gotoNextSibling ()
 
virtual PxU32 countChildren ()
 
virtual const char * getCurrentItemName ()
 
virtual const char * getCurrentItemValue ()
 
virtual bool leaveChild ()
 
virtual void pushCurrentContext ()
 
virtual void popCurrentContext ()
 
virtual void setNode (XmlNode &inNode)
 
virtual XmlReader * getParentReader ()
 
virtual void addOrGotoChild (const char *inName)
 
virtual void setCurrentItemValue (const char *inValue)
 
virtual bool removeChild (const char *name)
 
virtual void release ()
 
- Public Member Functions inherited from physx::XmlReaderWriter
bool renameProperty (const char *oldName, const char *newName)
 
bool readAndRemoveProperty (const char *name, const char *&outValue)
 
bool writePropertyIfNotEmpty (const char *name, const char *value)
 

Public Attributes

PxProfileAllocatorWrapper mWrapper
 
CMemoryPoolManager & mManager
 
XmlNode * mCurrentNode
 
XmlNode * mTopNode
 
PxProfileArray< XmlNode * > mContext
 

Member Function Documentation

◆ addOrGotoChild()

virtual void physx::Sn::XmlNodeReader::addOrGotoChild ( const char *  inName)
inlinevirtual

◆ countChildren()

virtual PxU32 physx::Sn::XmlNodeReader::countChildren ( )
inlinevirtual

Count all children of the current object

Implements physx::XmlReader.

◆ getCurrentItemName()

virtual const char * physx::Sn::XmlNodeReader::getCurrentItemName ( )
inlinevirtual

Get the name of the current item

Implements physx::XmlReader.

◆ getCurrentItemValue()

virtual const char * physx::Sn::XmlNodeReader::getCurrentItemValue ( )
inlinevirtual

Get the value of the current item

Implements physx::XmlReader.

◆ getParentReader()

virtual XmlReader * physx::Sn::XmlNodeReader::getParentReader ( )
inlinevirtual

Get reader for the parental object

Implements physx::XmlReader.

◆ gotoChild()

virtual bool physx::Sn::XmlNodeReader::gotoChild ( const char *  inName)
inlinevirtual

Goto a child element by name. That child becomes this reader's context

Implements physx::XmlReader.

◆ gotoFirstChild()

virtual bool physx::Sn::XmlNodeReader::gotoFirstChild ( )
inlinevirtual

Goto the first child regardless of name

Implements physx::XmlReader.

◆ gotoNextSibling()

virtual bool physx::Sn::XmlNodeReader::gotoNextSibling ( )
inlinevirtual

Goto the next sibling regardless of name

Implements physx::XmlReader.

◆ leaveChild()

virtual bool physx::Sn::XmlNodeReader::leaveChild ( )
inlinevirtual

Leave the current child

Implements physx::XmlReader.

◆ popCurrentContext()

virtual void physx::Sn::XmlNodeReader::popCurrentContext ( )
inlinevirtual

Pop the current context back to where it during push

Implements physx::XmlReader.

◆ pushCurrentContext()

virtual void physx::Sn::XmlNodeReader::pushCurrentContext ( )
inlinevirtual

Ensures we don't leave the reader in an odd state due to not leaving a given child

Implements physx::XmlReader.

◆ read() [1/2]

virtual bool physx::Sn::XmlNodeReader::read ( const char *  inName,
const char *&  outData 
)
inlinevirtual

Read a key-value pair out of the database

Implements physx::XmlReader.

◆ read() [2/2]

virtual bool physx::Sn::XmlNodeReader::read ( const char *  inName,
PxSerialObjectId &  outId 
)
inlinevirtual

Read an object id out of the database

Implements physx::XmlReader.

◆ release()

virtual void physx::Sn::XmlNodeReader::release ( )
inlinevirtual

◆ removeChild()

virtual bool physx::Sn::XmlNodeReader::removeChild ( const char *  name)
inlinevirtual

◆ setCurrentItemValue()

virtual void physx::Sn::XmlNodeReader::setCurrentItemValue ( const char *  inValue)
inlinevirtual

◆ setNode()

virtual void physx::Sn::XmlNodeReader::setNode ( XmlNode &  inNode)
inlinevirtual

The documentation for this struct was generated from the following file: