CustusX  2021.04.21-dev+develop.337f9
An IGT application
cx::XMLNodeAdder Class Reference

#include <cxXMLNodeWrapper.h>

Public Member Functions

 XMLNodeAdder (QDomNode node)
 
XMLNodeAdder descend (QString path)
 
QDomElement addTextToElement (QString name, QString text)
 
template<class T >
void addObjectToElement (QString name, T object)
 
QDomElement addElement (QString name)
 
QDomNode node ()
 

Detailed Description

Helper for CustusX addXml/parseXml framework

Date
2014-02-27
Author
christiana

Definition at line 34 of file cxXMLNodeWrapper.h.

Constructor & Destructor Documentation

cx::XMLNodeAdder::XMLNodeAdder ( QDomNode  node)

Definition at line 20 of file cxXMLNodeWrapper.cpp.

Member Function Documentation

QDomElement cx::XMLNodeAdder::addElement ( QString  name)

Definition at line 60 of file cxXMLNodeWrapper.cpp.

template<class T >
void cx::XMLNodeAdder::addObjectToElement ( QString  name,
object 
)
inline

Definition at line 48 of file cxXMLNodeWrapper.h.

QDomElement cx::XMLNodeAdder::addTextToElement ( QString  name,
QString  text 
)

Definition at line 53 of file cxXMLNodeWrapper.cpp.

XMLNodeAdder cx::XMLNodeAdder::descend ( QString  path)

Use the /-separated path to descend into the root children recursively. Create elements if necessary.

Definition at line 24 of file cxXMLNodeWrapper.cpp.

QDomNode cx::XMLNodeAdder::node ( )

Definition at line 48 of file cxXMLNodeWrapper.cpp.


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