Qt Utilities
5.6.0
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
Macros to utilize XML parsing using QXmlStreamReader. More...
#include "./undefxmlparsermacros.h"
Go to the source code of this file.
Macros | |
#define | iftag(tagName) if(xmlReader.name() == QLatin1String(tagName)) |
#define | eliftag(tagName) else if(xmlReader.name() == QLatin1String(tagName)) |
#define | else_skip else { xmlReader.skipCurrentElement(); } |
#define | children while(xmlReader.readNextStartElement()) |
#define | text (xmlReader.readElementText(QXmlStreamReader::ErrorOnUnexpectedElement)) |
#define | attribute(attributeName) (xmlReader.attributes().value(QLatin1String(attributeName))) |
#define | attributeFlag(attributeName) (xmlReader.attributes().hasAttribute(QLatin1String(attributeName)) && xmlReader.attributes().value(QLatin1String(attributeName)) != QLatin1String("false")) |
Macros to utilize XML parsing using QXmlStreamReader.
Definition in file xmlparsermacros.h.
#define attribute | ( | attributeName | ) | (xmlReader.attributes().value(QLatin1String(attributeName))) |
Definition at line 15 of file xmlparsermacros.h.
#define attributeFlag | ( | attributeName | ) | (xmlReader.attributes().hasAttribute(QLatin1String(attributeName)) && xmlReader.attributes().value(QLatin1String(attributeName)) != QLatin1String("false")) |
Definition at line 16 of file xmlparsermacros.h.
#define children while(xmlReader.readNextStartElement()) |
Definition at line 13 of file xmlparsermacros.h.
#define eliftag | ( | tagName | ) | else if(xmlReader.name() == QLatin1String(tagName)) |
Definition at line 11 of file xmlparsermacros.h.
#define else_skip else { xmlReader.skipCurrentElement(); } |
Definition at line 12 of file xmlparsermacros.h.
#define iftag | ( | tagName | ) | if(xmlReader.name() == QLatin1String(tagName)) |
Definition at line 10 of file xmlparsermacros.h.
#define text (xmlReader.readElementText(QXmlStreamReader::ErrorOnUnexpectedElement)) |
Definition at line 14 of file xmlparsermacros.h.