CustusX  22.04-rc5
An IGT application
cx::XMLNodeParser Class Reference

#include <cxXMLNodeWrapper.h>

Public Member Functions

 XMLNodeParser (QDomNode node)
 
XMLNodeParser descend (QString path)
 
QDomNode node ()
 
QString parseTextFromElement (QString name)
 
double parseDoubleFromElementWithDefault (QString name, double defaultValue)
 
QStringList parseTextFromDuplicateElements (QString name)
 
std::vector< QDomElement > getDuplicateElements (QString name)
 
template<class T >
void parseObjectFromElement (QString name, T object)
 
QDomElement parseElement (QString name)
 

Detailed Description

Helper for CustusX addXml/parseXml framework

Date
2014-02-27
Author
christiana

Definition at line 67 of file cxXMLNodeWrapper.h.

Constructor & Destructor Documentation

cx::XMLNodeParser::XMLNodeParser ( QDomNode  node)

-----------------------------------------------------—


Definition at line 76 of file cxXMLNodeWrapper.cpp.

Member Function Documentation

XMLNodeParser cx::XMLNodeParser::descend ( QString  path)

Use the /-separated path to descend into the root children recursively.

Definition at line 80 of file cxXMLNodeWrapper.cpp.

std::vector< QDomElement > cx::XMLNodeParser::getDuplicateElements ( QString  name)

Definition at line 128 of file cxXMLNodeWrapper.cpp.

QDomNode cx::XMLNodeParser::node ( )

Definition at line 146 of file cxXMLNodeWrapper.cpp.

double cx::XMLNodeParser::parseDoubleFromElementWithDefault ( QString  name,
double  defaultValue 
)

Definition at line 106 of file cxXMLNodeWrapper.cpp.

QDomElement cx::XMLNodeParser::parseElement ( QString  name)

Definition at line 141 of file cxXMLNodeWrapper.cpp.

template<class T >
void cx::XMLNodeParser::parseObjectFromElement ( QString  name,
object 
)
inline

Definition at line 83 of file cxXMLNodeWrapper.h.

QStringList cx::XMLNodeParser::parseTextFromDuplicateElements ( QString  name)

Definition at line 116 of file cxXMLNodeWrapper.cpp.

QString cx::XMLNodeParser::parseTextFromElement ( QString  name)

Definition at line 101 of file cxXMLNodeWrapper.cpp.


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