V-ART
Classes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
VART::XmlBase Class Reference

Basic methods for reading XML files. More...

#include <xmlbase.h>

Inheritance diagram for VART::XmlBase:
VART::XmlAction VART::XmlJointAction VART::XmlScene

Classes

class  ErrorHandler
 Provides pretty errors messages for Xerces. More...
 
class  TempCString
 Class for auto conversion from Xerces strings to C strings. More...
 
class  XercesString
 Class for auto conversion from C strings to Xerces strings. More...
 

Protected Member Functions

 XmlBase ()
 Creates an unitialized object. More...
 
bool ParseFile (const std::string &fileName)
 Checks if the file comforms to DTD. More...
 
void Terminate ()
 Terminates Xerces objects. More...
 

Static Protected Member Functions

static bool GetAttributeValue (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *nodePtr, const char itemName[], float *valuePtr)
 Gets an item value for certain node. More...
 
static bool GetAttributeValue (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *nodePtr, const char itemName[], std::string *valuePtr)
 Gets an item value for certain node. More...
 
static bool GetAttributeValue (XERCES_CPP_NAMESPACE::DOMNamedNodeMap *nodePtr, const char itemName[], bool *valuePtr)
 Gets an item value for certain node. More...
 

Protected Attributes

XERCES_CPP_NAMESPACE::XercesDOMParser * parserPtr
 
XERCES_CPP_NAMESPACE::DOMDocument * documentPtr
 

Detailed Description

Basic methods for reading XML files.

FixMe: Put Detailed description here

Definition at line 18 of file xmlbase.h.

Constructor & Destructor Documentation

VART::XmlBase::XmlBase ( )
protected

Creates an unitialized object.

Definition at line 24 of file xmlbase.cpp.

Member Function Documentation

bool VART::XmlBase::GetAttributeValue ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  nodePtr,
const char  itemName[],
float *  valuePtr 
)
staticprotected

Gets an item value for certain node.

Parameters
nodePtr[in] node that holds the item
itemName[in] name of wanted item
valuePtr[out] value of wanted item
Returns
false on errors.

Definition at line 136 of file xmlbase.cpp.

References VART::XmlBase::TempCString::GetValue().

static bool VART::XmlBase::GetAttributeValue ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  nodePtr,
const char  itemName[],
std::string *  valuePtr 
)
staticprotected

Gets an item value for certain node.

Parameters
nodePtr[in] node that holds the item
itemName[in] name of wanted item
valuePtr[out] value of wanted item
Returns
false on errors.
bool VART::XmlBase::GetAttributeValue ( XERCES_CPP_NAMESPACE::DOMNamedNodeMap *  nodePtr,
const char  itemName[],
bool *  valuePtr 
)
staticprotected

Gets an item value for certain node.

Parameters
nodePtr[in] node that holds the item
itemName[in] name of wanted item
valuePtr[out] value of wanted item
Returns
false on errors.

Definition at line 153 of file xmlbase.cpp.

References VART::XmlBase::TempCString::GetValue().

bool VART::XmlBase::ParseFile ( const std::string &  fileName)
protected

Checks if the file comforms to DTD.

Definition at line 30 of file xmlbase.cpp.

References VART::XmlBase::ErrorHandler::getSawErrors().

void VART::XmlBase::Terminate ( )
protected

Terminates Xerces objects.

Definition at line 125 of file xmlbase.cpp.

Member Data Documentation

XERCES_CPP_NAMESPACE::DOMDocument* VART::XmlBase::documentPtr
protected

Definition at line 134 of file xmlbase.h.

XERCES_CPP_NAMESPACE::XercesDOMParser* VART::XmlBase::parserPtr
protected

Definition at line 133 of file xmlbase.h.


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