![]() |
VR-Forces Developer's Guide
|
Represents a reader class that interacts with libXml to read a VR-Forces DtReaderWriter class documentation file.
Public Member Functions | |
| DtRwClassDocReader () | |
| virtual | ~DtRwClassDocReader () |
| virtual bool | read (const DtFilename &filename, DtReaderWriterClassDocumentation ¶meterDocDesc) const |
Protected Member Functions | |
| virtual xmlNodePtr | xmlFindNode (xmlNodePtr node, const char *nodeName) const |
| virtual xmlNodePtr | xmlFindNode (xmlNodePtr node, const char *nodeName, const char *attrName, const char *attrValue) const |
| virtual DtString | xmlGetAttrValue (xmlNodePtr node, const char *attrname) const |
| virtual DtString | xmlGetAtomicNodeValue (xmlNodePtr node, const char *nodeName) const |
| virtual void | xmlNextNode (xmlNodePtr &node) const |
| virtual DtString | xmlGetAtomicNodeValue (xmlNodePtr node) const |
| virtual xmlNodePtr | xmlGetChildren (xmlNodePtr node) const |
Private Member Functions | |
| DtRwClassDocReader (const DtRwClassDocReader &node) | |
| DtRwClassDocReader & | operator= (const DtRwClassDocReader &orig) |
| DtRwClassDocReader::DtRwClassDocReader | ( | ) |
constructor.
|
virtual |
Destructor.
|
private |
Copy constructor – not implemented.
|
virtual |
Reads in contents of DtReaderWriter class doc file to class descriptor object.
|
protectedvirtual |
Finds the first node whose tag matches the one given by nodeName.
| node | Starting node for the search inside the xml document |
| nodeName | Name of the node to be searched (e.g. "GridStructure") |
|
protectedvirtual |
Finds the node named as nodeName and that also has an attribute named attrName with a value of attrValue. For example, findNode(nodeptr, "GridStructure", "name", "abc") searches for a node that looks like
<GridStructure name="abc">
...
</GridStructure>
|
protectedvirtual |
Returns the value of the attribute attrname inside the node. Attributes are specified inside the node like this
<node attrname=value ...>
...
</node>
| node | Node to access |
| attrname | Name of the attribute to be searched (e.g. "name") |
|
protectedvirtual |
Returns the value of an "atomic" node. Atomic nodes are the ones that have the following structure <tag>value</tag>.
| node | Node to start the search of the atomic node |
| nodeName | Name of the atomic node to be searched |
|
protectedvirtual |
|
protectedvirtual |
Returns the value of an "atomic" node. Atomic nodes are the ones that have the following structure <tag>value</tag>. It returns the empty string if the node has the form or <tag></tag>
|
protectedvirtual |
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. This function guarantees you get an actual child node as the first node.
|
private |
Assignment operator – not implemented.