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 *)
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_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_kernel
const StrXML TAG_load
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_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]
 

int XMLHandler::getActualID  )  [protected]
 

get New ID

the actual

string XMLHandler::getChildData DOMNode *  parent,
const XMLCh *  childname
[protected]
 

DOMNode * XMLHandler::getElementByTagName const XMLCh *   ) 
 

list< string > XMLHandler::getNodesChildDataList XMLCh *  parent,
XMLCh *  child
[protected]
 

string XMLHandler::getValueOfNode DOMNode *  ,
const XMLCh * 
 

string XMLHandler::getValueOfNode DOMNode *   ) 
 

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_localtime [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]
 

XercesDOMParser XMLHandler::parser [private]
 

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_dependency [protected]
 

const StrXML XMLHandler::TAG_description [protected]
 

const StrXML XMLHandler::TAG_experiment [protected]
 

const StrXML XMLHandler::TAG_file [protected]
 

const StrXML XMLHandler::TAG_filename [protected]
 

const StrXML XMLHandler::TAG_green [protected]
 

const StrXML XMLHandler::TAG_kernel [protected]
 

const StrXML XMLHandler::TAG_load [protected]
 

const StrXML XMLHandler::TAG_loadhistory [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_postprocessor [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 Sun Jul 29 08:17:37 2007 for CrusDe by doxygen 1.3.8