19 #ifndef CXXMLOPTIONITEM_H_ 20 #define CXXMLOPTIONITEM_H_ 22 #include "cxResourceExport.h" 25 #include <QDomElement> 45 QString readValue(
const QString& defval)
const;
46 void writeValue(
const QString& val);
48 QVariant readVariant(
const QVariant& defval=QVariant())
const;
49 void writeVariant(
const QVariant& val);
52 QDomElement findElemFromUid(
const QString& uid, QDomNode root)
const;
56 static QString SerializeDataToB64String(
const QVariant& data);
57 static QVariant DeserializeB64String(
const QString& serializedVariant);
87 QString getFileName();
93 XmlOptionFile descend(QString element, QString attributeName, QString attributeValue)
const;
95 XmlOptionFile tryDescend(QString element, QString attributeName, QString attributeValue)
const;
97 QDomDocument getDocument();
98 QDomElement getElement();
99 QDomElement getElement(QString level1);
100 QDomElement getElement(QString level1, QString level2);
104 void removeChildren();
107 QDomElement safeGetElement(QDomElement parent, QString childName);
110 void printDocument();
112 static void printDocument(QDomDocument document);
113 static void printElement(QDomElement element);
119 QDomDocument mDocument;
120 QDomElement mCurrentElement;
Helper class for storing one string value in an xml document.
Helper class for xml files used to store ssc/cx data.
Namespace for all CustusX production code.