Fraxinus  17.12-rc4
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 55 of file cxXMLNodeWrapper.h.

Constructor & Destructor Documentation

cx::XMLNodeAdder::XMLNodeAdder ( QDomNode  node)

Definition at line 41 of file cxXMLNodeWrapper.cpp.

Member Function Documentation

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

Definition at line 81 of file cxXMLNodeWrapper.cpp.

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

Definition at line 69 of file cxXMLNodeWrapper.h.

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

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

QDomNode cx::XMLNodeAdder::node ( )

Definition at line 69 of file cxXMLNodeWrapper.cpp.


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