Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

xercesDomUtil.h File Reference

#include <exception>
#include <string>
#include <vector>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XMLString.hpp>
#include <sys/time.h>
#include "Exceptions.h"

Go to the source code of this file.Go to the history log for this file.

Enumerations

enum  XmlAttrReq { ATTR_NOT_REQUIRED = 0, ATTR_REQUIRED = 1, ATTR_NON_EMPTY = 2 }

Functions

void writeDomDocToFile (const DOMDocument &doc, string filename) throw (exception)
DOMDocument * readDomDocFromFile (DOMImplementationLS &impl, string filename) throw (exception)
DOMImplementationLS * getDomImplementationLs () throw (exception)
DOMImplementation * getDomImplementation () throw (exception)
DOMElement * createDomElement (DOMDocument &docOwner, string elementName) throw (exception)
DOMElement * getDomChildByKeyTag (const DOMElement &parent, string childTagName) throw (exception)
bool parseXmlStringAsBool (const XMLCh *pXml) throw (exception)
int parseXmlStringAsInt (const XMLCh *pXml) throw (exception)
unsigned int parseXmlStringAsUInt (const XMLCh *pXml) throw (exception)
unsigned long parseXmlStringAsLong (const XMLCh *pXml) throw (exception)
unsigned long parseXmlStringAsULong (const XMLCh *pXml) throw (exception)
unsigned long long parseXmlStringAsULongLong (const XMLCh *pXml) throw (exception)
double parseXmlStringAsDouble (const XMLCh *pXml) throw (exception)
void saveIntVectorToXml (const vector< int > &v, DOMDocument &doc, DOMElement &elem) throw (exception)
void loadIntVectorFromXml (vector< int > &v, DOMElement &elem) throw (exception)
void saveTimevalToXml (const timeval &tv, DOMDocument &doc, DOMElement &elem) throw (exception)
void loadTimevalFromXml (timeval &tv, DOMElement &elem) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, bool newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, int newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, unsigned int newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, long newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, unsigned long newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, unsigned long long newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, string newValue) throw (exception)
void setDomAttribute (DOMElement &elem, string attributeName, double newValue) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, bool &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, int &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, unsigned int &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, long &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, unsigned long &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, unsigned long long &value) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, string &newValue) throw (exception)
void getDomAttribute (const DOMElement &elem, string attributeName, double &newValue) throw (exception)
bool isDomAttributePresent (const DOMElement &elem, string attributeName) throw (exception)
ptr< DOMDocument > parseXmlFile (string filename) throw (AuroraBadXmlException)
ptr< DOMDocument > parseXmlString (string data) throw (AuroraBadXmlException)
ptr< DOMDocument > parseXmlString (const void *data, unsigned int length) throw (AuroraBadXmlException)
string xmlAttribute (const DOMElement *element, string name, XmlAttrReq req=ATTR_NOT_REQUIRED) throw (AuroraBadEntityException)
string xmlAttribute (const DOMElement *element, string name, string def) throw (AuroraBadEntityException)
void xmlExpectTag (const DOMElement *element, string name) throw (AuroraBadEntityException)
template<class T> bool xmlTypedAttribute (const DOMElement *element, string name, T &value, XmlAttrReq req=ATTR_NOT_REQUIRED) throw (AuroraBadEntityException)
string xmlEscape (string in)
DOMElement * xmlOnlyTag (const DOMElement *parent, bool required=true) throw (AuroraException)
DOMElement * xmlOnlyTag (const DOMElement *parent, string tag, bool required=true) throw (AuroraException)
void xmlChildElements (vector< DOMElement * > &children, const DOMElement *parent, string tag=string())
string xmlSerialize (const DOMNode *node)

Variables

 BOREALIS_NAMESPACE_BEGIN
 BOREALIS_NAMESPACE_END


Enumeration Type Documentation

enum XmlAttrReq
 

Enumeration values:
ATTR_NOT_REQUIRED 
ATTR_REQUIRED 
ATTR_NON_EMPTY 


Function Documentation

DOMElement* createDomElement DOMDocument &  docOwner,
string  elementName
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
double &  newValue
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
string &  newValue
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
unsigned long long &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
unsigned long &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
long &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
unsigned int &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
int &  value
throw (exception)
 

void getDomAttribute const DOMElement &  elem,
string  attributeName,
bool &  value
throw (exception)
 

DOMElement* getDomChildByKeyTag const DOMElement &  parent,
string  childTagName
throw (exception)
 

DOMImplementation* getDomImplementation  )  throw (exception)
 

DOMImplementationLS* getDomImplementationLs  )  throw (exception)
 

bool isDomAttributePresent const DOMElement &  elem,
string  attributeName
throw (exception)
 

void loadIntVectorFromXml vector< int > &  v,
DOMElement &  elem
throw (exception)
 

void loadTimevalFromXml timeval &  tv,
DOMElement &  elem
throw (exception)
 

ptr<DOMDocument> parseXmlFile string  filename  )  throw (AuroraBadXmlException)
 

ptr<DOMDocument> parseXmlString const void *  data,
unsigned int  length
throw (AuroraBadXmlException)
 

ptr<DOMDocument> parseXmlString string  data  )  throw (AuroraBadXmlException)
 

bool parseXmlStringAsBool const XMLCh *  pXml  )  throw (exception)
 

double parseXmlStringAsDouble const XMLCh *  pXml  )  throw (exception)
 

int parseXmlStringAsInt const XMLCh *  pXml  )  throw (exception)
 

unsigned long parseXmlStringAsLong const XMLCh *  pXml  )  throw (exception)
 

unsigned int parseXmlStringAsUInt const XMLCh *  pXml  )  throw (exception)
 

unsigned long parseXmlStringAsULong const XMLCh *  pXml  )  throw (exception)
 

unsigned long long parseXmlStringAsULongLong const XMLCh *  pXml  )  throw (exception)
 

DOMDocument* readDomDocFromFile DOMImplementationLS &  impl,
string  filename
throw (exception)
 

void saveIntVectorToXml const vector< int > &  v,
DOMDocument &  doc,
DOMElement &  elem
throw (exception)
 

void saveTimevalToXml const timeval &  tv,
DOMDocument &  doc,
DOMElement &  elem
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
double  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
string  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
unsigned long long  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
unsigned long  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
long  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
unsigned int  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
int  newValue
throw (exception)
 

void setDomAttribute DOMElement &  elem,
string  attributeName,
bool  newValue
throw (exception)
 

void writeDomDocToFile const DOMDocument &  doc,
string  filename
throw (exception)
 

string xmlAttribute const DOMElement *  element,
string  name,
string  def
throw (AuroraBadEntityException)
 

string xmlAttribute const DOMElement *  element,
string  name,
XmlAttrReq  req = ATTR_NOT_REQUIRED
throw (AuroraBadEntityException)
 

void xmlChildElements vector< DOMElement * > &  children,
const DOMElement *  parent,
string  tag = string()
 

string xmlEscape string  in  ) 
 

void xmlExpectTag const DOMElement *  element,
string  name
throw (AuroraBadEntityException)
 

DOMElement* xmlOnlyTag const DOMElement *  parent,
string  tag,
bool  required = true
throw (AuroraException)
 

DOMElement* xmlOnlyTag const DOMElement *  parent,
bool  required = true
throw (AuroraException)
 

string xmlSerialize const DOMNode *  node  ) 
 

template<class T>
bool xmlTypedAttribute const DOMElement *  element,
string  name,
T &  value,
XmlAttrReq  req = ATTR_NOT_REQUIRED
throw (AuroraBadEntityException)
 


Variable Documentation

BOREALIS_NAMESPACE_BEGIN
 

BOREALIS_NAMESPACE_END
 


Generated on Fri Nov 12 15:15:22 2004 for Borealis by doxygen 1.3.8