NorMIT-nav  2023.01.05-dev+develop.0da12
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

◆ XmlOptionItem() [1/2]

cx::XmlOptionItem::XmlOptionItem ( )
inline

Definition at line 41 of file cxXmlOptionItem.h.

◆ XmlOptionItem() [2/2]

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

Definition at line 157 of file cxXmlOptionItem.cpp.

Member Function Documentation

◆ readValue()

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

Definition at line 178 of file cxXmlOptionItem.cpp.

◆ readVariant()

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

Definition at line 163 of file cxXmlOptionItem.cpp.

◆ writeValue()

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

Definition at line 189 of file cxXmlOptionItem.cpp.

◆ writeVariant()

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: