NorMIT-nav  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 59 of file cxXmlOptionItem.h.

Constructor & Destructor Documentation

cx::XmlOptionItem::XmlOptionItem ( )
inline

Definition at line 62 of file cxXmlOptionItem.h.

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

Definition at line 178 of file cxXmlOptionItem.cpp.

Member Function Documentation

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

Definition at line 199 of file cxXmlOptionItem.cpp.

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

Definition at line 184 of file cxXmlOptionItem.cpp.

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

Definition at line 210 of file cxXmlOptionItem.cpp.

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

Definition at line 193 of file cxXmlOptionItem.cpp.


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