Menu

[efa3d9]: / src / xmlobj.h  Maximize  Restore  History

Download this file

37 lines (30 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef XMLOBJ_H
#define XMLOBJ_H
#include <QString>
#include <QStringList>
QString quoteMeta(const QString &);
QString unquoteMeta(const QString &);
QString quoteQuotes(const QString &);
QString unquoteQuotes(const QString &);
QString getCDATA(const QString &s);
/////////////////////////////////////////////////////////////////////////////
class XMLObj {
public:
XMLObj();
virtual ~XMLObj();
QString singleElement(QString, QString); // name,attr
QString singleElement(QString, QStringList); // name,attributes
QString beginElement(QString, QString); // name,attr
QString beginElement(QString); // name
QString endElement(QString); // name
QString attribute(QString, QString) const; // name, val
QString valueElement(QString, QString); // name, val
QString valueElement(QString, QString, QString); // name, val, attr
void incIndent();
void decIndent();
static int curIndent;
protected:
QString indent();
int indentWidth;
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.