40 #ifndef CXXMLOPTIONITEM_H_
41 #define CXXMLOPTIONITEM_H_
43 #include "cxResourceExport.h"
46 #include <QDomElement>
66 QString readValue(
const QString& defval)
const;
67 void writeValue(
const QString& val);
69 QVariant readVariant(
const QVariant& defval=QVariant())
const;
70 void writeVariant(
const QVariant& val);
73 QDomElement findElemFromUid(
const QString& uid, QDomNode root)
const;
77 static QString SerializeDataToB64String(
const QVariant& data);
78 static QVariant DeserializeB64String(
const QString& serializedVariant);
108 QString getFileName();
114 XmlOptionFile descend(QString element, QString attributeName, QString attributeValue)
const;
116 XmlOptionFile tryDescend(QString element, QString attributeName, QString attributeValue)
const;
118 QDomDocument getDocument();
119 QDomElement getElement();
120 QDomElement getElement(QString level1);
121 QDomElement getElement(QString level1, QString level2);
125 void removeChildren();
128 QDomElement safeGetElement(QDomElement parent, QString childName);
131 void printDocument();
133 static void printDocument(QDomDocument document);
134 static void printElement(QDomElement element);
140 QDomDocument mDocument;
141 QDomElement mCurrentElement;
Helper class for storing one string value in an xml document.
Helper class for xml files used to store ssc/cx data.