CustusX  22.04-rc2
An IGT application
cx::XmlOptionItem Class Reference

Helper class for storing one string value in an xml document. More...

#include <cxXmlOptionItem.h>

Public Member Functions

 XmlOptionItem ()
 
 XmlOptionItem (const QString &uid, QDomElement root)
 
QString readValue (const QString &defval) const
 
void writeValue (const QString &val)
 
QVariant readVariant (const QVariant &defval=QVariant()) const
 
void writeVariant (const QVariant &val)
 

Detailed Description

Helper class for storing one string value in an xml document.

Init with the parent (root) node and an uid, then read/write the value.

Definition at line 38 of file cxXmlOptionItem.h.

Constructor & Destructor Documentation

cx::XmlOptionItem::XmlOptionItem ( )
inline

Definition at line 41 of file cxXmlOptionItem.h.

cx::XmlOptionItem::XmlOptionItem ( const QString &  uid,
QDomElement  root 
)

Definition at line 157 of file cxXmlOptionItem.cpp.

Member Function Documentation

QString cx::XmlOptionItem::readValue ( const QString &  defval) const

Definition at line 178 of file cxXmlOptionItem.cpp.

QVariant cx::XmlOptionItem::readVariant ( const QVariant &  defval = QVariant()) const

Definition at line 163 of file cxXmlOptionItem.cpp.

void cx::XmlOptionItem::writeValue ( const QString &  val)

Definition at line 189 of file cxXmlOptionItem.cpp.

void cx::XmlOptionItem::writeVariant ( const QVariant &  val)

Definition at line 172 of file cxXmlOptionItem.cpp.


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