CustusX
20.03-rc1
An IGT application
|
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) |
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.
|
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.
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.