22 #include <QXmlStreamReader> 33 XmlReader(
const QByteArray& d) : QXmlStreamReader(d) {}
35 XmlReader(
const QString& d) : QXmlStreamReader(d) {}
38 void error(
const QString& s)
const;
43 QString
attribute(
const char* s)
const {
return attributes().value(s).toString(); }
44 QString
attribute(
const char* s,
const QString&)
const;
45 int intAttribute(
const char* s,
int _default = 0,
int base = 10)
const;
50 int readInt() {
return readElementText().toInt(); }
51 int readInt(
bool* ok) {
return readElementText().toInt(ok); }
52 double readDouble() {
return readElementText().toDouble(); }
bool hasAttribute(const char *s) const
Definition: xmlreader.cpp:71
int intAttribute(const char *s, int _default=0, int base=10) const
Definition: xmlreader.cpp:29
QRectF readRect()
Definition: xmlreader.cpp:108
QString docName
Definition: xmlreader.h:29
XmlReader(QFile *)
Definition: xmlreader.cpp:19
XmlReader(QIODevice *d)
Definition: xmlreader.h:34
double doubleAttribute(const char *s) const
Definition: xmlreader.cpp:42
QString attribute(const char *s) const
Definition: xmlreader.h:43
int readInt(bool *ok)
Definition: xmlreader.h:51
void unknown() const
Definition: xmlreader.cpp:125
void setDocName(const QString &s)
Definition: xmlreader.h:57
double readDouble()
Definition: xmlreader.h:52
QPointF readPoint()
Definition: xmlreader.cpp:80
XmlReader(const QByteArray &d)
Definition: xmlreader.h:33
XmlReader(const QString &d)
Definition: xmlreader.h:35
Definition: xmlreader.h:28
QSizeF readSize()
Definition: xmlreader.cpp:94
void error(const QString &s) const
Definition: xmlreader.cpp:138
int readInt()
Definition: xmlreader.h:50