CustusX  16.5.0-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 88 of file cxXMLNodeWrapper.h.

Constructor & Destructor Documentation

cx::XMLNodeParser::XMLNodeParser ( QDomNode  node)

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


Definition at line 97 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 101 of file cxXMLNodeWrapper.cpp.

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

Definition at line 149 of file cxXMLNodeWrapper.cpp.

QDomNode cx::XMLNodeParser::node ( )

Definition at line 167 of file cxXMLNodeWrapper.cpp.

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

Definition at line 127 of file cxXMLNodeWrapper.cpp.

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

Definition at line 162 of file cxXMLNodeWrapper.cpp.

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

Definition at line 104 of file cxXMLNodeWrapper.h.

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

Definition at line 137 of file cxXMLNodeWrapper.cpp.

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

Definition at line 122 of file cxXMLNodeWrapper.cpp.


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