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...
Public Member Functions |
| | DtDiGuyCharacterDataXmlReader () |
| | Default constructor.
|
| | DtDiGuyCharacterDataXmlReader (xmlNodePtr root, xmlNodePtr node) |
| virtual | ~DtDiGuyCharacterDataXmlReader () |
| | Destructor.
|
| | DtDiGuyCharacterDataXmlReader (const DtDiGuyCharacterDataXmlReader &node) |
| | Copy constructor.
|
| DtDiGuyCharacterDataXmlReader & | operator= (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.
|
| | DtBaseXmlReader () |
| | Default constructor.
|
| | DtBaseXmlReader (xmlNodePtr root, xmlNodePtr node) |
| virtual | ~DtBaseXmlReader () |
| | Destructor.
|
| | DtBaseXmlReader (const DtBaseXmlReader &node) |
| | Copy constructor.
|
| DtBaseXmlReader & | operator= (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 () |
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.