XMLHandler Class Reference

#include <XMLHandler.h>

Inheritance diagram for XMLHandler:
Inheritance graph
[legend]
Collaboration diagram for XMLHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XMLHandler (const char *path)
virtual ~XMLHandler ()
DOMNode * getElementByTagName (const XMLCh *)
DOMNodeList * getElementListByTagName (const XMLCh *)
string getValueOfNode (DOMNode *)
string getValueOfNode (DOMNode *, const XMLCh *)
virtual void init ()=0

Protected Member Functions

list< string > getNodesChildDataList (XMLCh *parent, XMLCh *child)
string getChildData (DOMNode *parent, const XMLCh *childname)
void readXML () throw ( std::runtime_error )
void writeXML (bool pretty=false) throw ( std::runtime_error )
int getActualID ()

Protected Attributes

string xmlFile
string xmlPath
DOMDocument * doc
const StrXML core
const StrXML TAG_authors
const StrXML TAG_category
const StrXML TAG_crustaldecay
const StrXML TAG_dateAdded
const StrXML TAG_dependency
const StrXML TAG_description
const StrXML TAG_experiment
const StrXML TAG_file
const StrXML TAG_filename
const StrXML TAG_green
const StrXML TAG_job
const StrXML TAG_kernel
const StrXML TAG_load
const StrXML TAG_loadfunction
const StrXML TAG_loadhistory
const StrXML TAG_name
const StrXML TAG_output
const StrXML TAG_parameter
const StrXML TAG_plugin
const StrXML TAG_postprocessor
const StrXML TAG_region
const StrXML TAG_version
const StrXML ATTR_date
const StrXML ATTR_gmtime
const StrXML ATTR_id
const StrXML ATTR_job
const StrXML ATTR_localtime
const StrXML ATTR_name
const StrXML ATTR_user
const StrXML ATTR_value

Private Member Functions

 XMLHandler (const XMLHandler &x)
void fillNodesChildDataList (DOMNode *n, XMLCh *child, list< string > &datalist)

Private Attributes

XercesDOMParser parser
DOMTreeErrorReporter errReporter
DOMElement * rootElem

Constructor & Destructor Documentation

XMLHandler::XMLHandler ( const XMLHandler x  )  [private]

hidden and empty copy constructor - we do not want to accidentially copy objects

XMLHandler::XMLHandler ( const char *  path  ) 
XMLHandler::~XMLHandler (  )  [virtual]

Member Function Documentation

void XMLHandler::fillNodesChildDataList ( DOMNode *  n,
XMLCh *  child,
list< string > &  datalist 
) [private]

References t.

Referenced by getNodesChildDataList().

int XMLHandler::getActualID (  )  [protected]
string XMLHandler::getChildData ( DOMNode *  parent,
const XMLCh *  childname 
) [protected]
DOMNode * XMLHandler::getElementByTagName ( const XMLCh *  tagname  ) 
DOMNodeList * XMLHandler::getElementListByTagName ( const XMLCh *  tagname  ) 
list< string > XMLHandler::getNodesChildDataList ( XMLCh *  parent,
XMLCh *  child 
) [protected]

References doc, fillNodesChildDataList(), and l.

string XMLHandler::getValueOfNode ( DOMNode *  n,
const XMLCh *  name 
)
string XMLHandler::getValueOfNode ( DOMNode *  n  ) 
virtual void XMLHandler::init (  )  [pure virtual]

Implemented in DatabaseManager, and InputHandler.

void XMLHandler::readXML (  )  throw ( std::runtime_error ) [protected]
void XMLHandler::writeXML ( bool  pretty = false  )  throw ( std::runtime_error ) [protected]

Member Data Documentation

const StrXML XMLHandler::ATTR_date [protected]
const StrXML XMLHandler::ATTR_gmtime [protected]
const StrXML XMLHandler::ATTR_id [protected]
const StrXML XMLHandler::ATTR_job [protected]
const StrXML XMLHandler::ATTR_name [protected]
const StrXML XMLHandler::ATTR_user [protected]
const StrXML XMLHandler::ATTR_value [protected]
const StrXML XMLHandler::core [protected]
DOMDocument* XMLHandler::doc [protected]
DOMTreeErrorReporter XMLHandler::errReporter [private]

Referenced by readXML(), and XMLHandler().

XercesDOMParser XMLHandler::parser [private]

Referenced by readXML(), XMLHandler(), and ~XMLHandler().

DOMElement* XMLHandler::rootElem [private]

Reimplemented in InputHandler.

const StrXML XMLHandler::TAG_authors [protected]
const StrXML XMLHandler::TAG_category [protected]
const StrXML XMLHandler::TAG_dateAdded [protected]
const StrXML XMLHandler::TAG_file [protected]
const StrXML XMLHandler::TAG_filename [protected]
const StrXML XMLHandler::TAG_green [protected]
const StrXML XMLHandler::TAG_job [protected]
const StrXML XMLHandler::TAG_kernel [protected]
const StrXML XMLHandler::TAG_load [protected]
const StrXML XMLHandler::TAG_name [protected]
const StrXML XMLHandler::TAG_output [protected]
const StrXML XMLHandler::TAG_parameter [protected]
const StrXML XMLHandler::TAG_plugin [protected]
const StrXML XMLHandler::TAG_region [protected]
const StrXML XMLHandler::TAG_version [protected]
string XMLHandler::xmlFile [protected]
string XMLHandler::xmlPath [protected]

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

Generated on Tue Feb 16 15:18:39 2010 for CrusDe by  doxygen 1.6.1-20091004