MetNoFimex::XMLDoc Class Reference

#include <XMLDoc.h>

List of all members.

Public Member Functions

 XMLDoc (const std::string &filename) throw (CDMException)
virtual ~XMLDoc ()
XPathObjPtr getXPathObject (const std::string &xpath, xmlNodePtr node=0) const throw (CDMException)
void registerNamespace (const std::string &prefix, const std::string &uri) throw (CDMException)
 register a namespace for later xpath


Detailed Description

a tiny wrapper around libxml dom and xpath reader with xml::include

Constructor & Destructor Documentation

MetNoFimex::XMLDoc::XMLDoc ( const std::string filename  )  throw (CDMException)

initialization of libxml and the xml config file

Parameters:
filename xml input-file
Exceptions:
CDMException if problems with libxml or problems with input-file

virtual MetNoFimex::XMLDoc::~XMLDoc (  )  [virtual]


Member Function Documentation

XPathObjPtr MetNoFimex::XMLDoc::getXPathObject ( const std::string xpath,
xmlNodePtr  node = 0 
) const throw (CDMException)

get a ptr to the node defined by xpath

Parameters:
xpath xpath string for the node
Returns:
an xpathobj, which is != 0, but might have 0 elements, i.e. nodesetval == 0 or nodesetval->nodeNr == 0
Exceptions:
CDMException if xpath is not parsable

void MetNoFimex::XMLDoc::registerNamespace ( const std::string prefix,
const std::string uri 
) throw (CDMException)

register a namespace for later xpath

register a namespace with a prefix for later xpath retrievals

Parameters:
prefix short name for namespace
uri full namespace name


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

Generated on Fri May 7 15:50:19 2010 for MI - Fimex by  doxygen 1.5.5