VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtDiGuyCharacterDataXmlReader Class Reference

Represents a reader class that interacts with libXml to read the Di-Guy character digest file This file is represented as a n-ary tree document in which the tags contained inside other tags are represented as parent-child relationships. More...

Inheritance diagram for DtDiGuyCharacterDataXmlReader:
Inheritance graph
[legend]

Public Member Functions

 DtDiGuyCharacterDataXmlReader ()
 Default constructor.
 DtDiGuyCharacterDataXmlReader (xmlNodePtr root, xmlNodePtr node)
virtual ~DtDiGuyCharacterDataXmlReader ()
 Destructor.
 DtDiGuyCharacterDataXmlReader (const DtDiGuyCharacterDataXmlReader &node)
 Copy constructor.
DtDiGuyCharacterDataXmlReaderoperator= (const DtDiGuyCharacterDataXmlReader &orig)
 Assignment operator.
virtual bool readCharacterData (xmlNodePtr node, DtDiGuyCharacterData *data)
 Reads a character_type node and fills in all the data for that character.
virtual bool readCharacterAppearances (xmlNodePtr appNode, DtDiGuyCharacterData *data)
 Reads the appearance list for a character from it's appearance node.
virtual bool readCharacterAnimations (xmlNodePtr animateNode, DtDiGuyCharacterData *data)
 Reads the animations list for a character from it's animation root node.
virtual bool readAnimationNode (xmlNodePtr node, DtDiGuyAnimation *animation)
virtual bool readCharacterHandItems (xmlNodePtr handItemNode, DtDiGuyCharacterData *data)
 Reads the hand item list for a character from it's hand_item node.
virtual void setAnimationsTable (DtDiGuyCharacterAnimationsTable *table)
 This class just uses this list, doesn't own it so don't remove it.
- Public Member Functions inherited from DtBaseXmlReader
 DtBaseXmlReader ()
 Default constructor.
 DtBaseXmlReader (xmlNodePtr root, xmlNodePtr node)
virtual ~DtBaseXmlReader ()
 Destructor.
 DtBaseXmlReader (const DtBaseXmlReader &node)
 Copy constructor.
DtBaseXmlReaderoperator= (const DtBaseXmlReader &orig)
 Assignment operator.
virtual xmlNodePtr findNode (xmlNodePtr node, const char *nodeName)
 Finds the first node whose tag matches the one given by nodeName.
virtual xmlNodePtr findNode (xmlNodePtr node, const char *nodeName, const char *attrName, const char *attrValue)
 Finds the node named as nodeName and that also has an attribute named attrName with a value of attrValue.
virtual DtString getAttrValue (xmlNodePtr node, const char *attrname) const
 Returns the value of the attribute attrname inside the node.
virtual DtString getAtomicNodeValue (xmlNodePtr node, const char *nodeName)
 Returns the value of an "atomic" node.
virtual void nextNode (xmlNodePtr &node)
virtual xmlNodePtr getRootNode ()

Protected Attributes

DtDiGuyCharacterAnimationsTablemyCharacterAnimationTable
- Protected Attributes inherited from DtBaseXmlReader
xmlNodePtr myRootNode
xmlNodePtr myCurNode

Additional Inherited Members

- Protected Member Functions inherited from DtBaseXmlReader
virtual DtString getAtomicNodeValue (xmlNodePtr node) const
 Returns the value of an "atomic" node.
virtual xmlNodePtr getChildren (xmlNodePtr node) const
 Returns a pointer to the first child of the node or NULL if not defined The reason for this method is because libXml also includes blank text nodes sometimes, so they need to be filtered out.

Detailed Description

Represents a reader class that interacts with libXml to read the Di-Guy character digest file This file is represented as a n-ary tree document in which the tags contained inside other tags are represented as parent-child relationships.

For example,

<action name="stand" >
<duration>0.500000</duration>
<speed>0.000000</speed>
<posture>upright</posture>
</action>

is represented as a tree with the action node as the father and duration,speed, and posture as children. duration,speed, and posture are considered atomic nodes since they have no child tags.

Constructor & Destructor Documentation

DtDiGuyCharacterDataXmlReader::DtDiGuyCharacterDataXmlReader ( )

Default constructor.

DtDiGuyCharacterDataXmlReader::DtDiGuyCharacterDataXmlReader ( xmlNodePtr  root,
xmlNodePtr  node 
)
virtual DtDiGuyCharacterDataXmlReader::~DtDiGuyCharacterDataXmlReader ( )
virtual

Destructor.

DtDiGuyCharacterDataXmlReader::DtDiGuyCharacterDataXmlReader ( const DtDiGuyCharacterDataXmlReader node)

Copy constructor.

Member Function Documentation

DtDiGuyCharacterDataXmlReader& DtDiGuyCharacterDataXmlReader::operator= ( const DtDiGuyCharacterDataXmlReader orig)

Assignment operator.

virtual bool DtDiGuyCharacterDataXmlReader::readCharacterData ( xmlNodePtr  node,
DtDiGuyCharacterData data 
)
virtual

Reads a character_type node and fills in all the data for that character.

virtual bool DtDiGuyCharacterDataXmlReader::readCharacterAppearances ( xmlNodePtr  appNode,
DtDiGuyCharacterData data 
)
virtual

Reads the appearance list for a character from it's appearance node.

virtual bool DtDiGuyCharacterDataXmlReader::readCharacterAnimations ( xmlNodePtr  animateNode,
DtDiGuyCharacterData data 
)
virtual

Reads the animations list for a character from it's animation root node.

virtual bool DtDiGuyCharacterDataXmlReader::readAnimationNode ( xmlNodePtr  node,
DtDiGuyAnimation animation 
)
virtual
virtual bool DtDiGuyCharacterDataXmlReader::readCharacterHandItems ( xmlNodePtr  handItemNode,
DtDiGuyCharacterData data 
)
virtual

Reads the hand item list for a character from it's hand_item node.

virtual void DtDiGuyCharacterDataXmlReader::setAnimationsTable ( DtDiGuyCharacterAnimationsTable table)
virtual

This class just uses this list, doesn't own it so don't remove it.

This information is used to provide additional configuration for the animations;

Member Data Documentation

DtDiGuyCharacterAnimationsTable* DtDiGuyCharacterDataXmlReader::myCharacterAnimationTable
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)