#ifndef XMLREADLOOP_H #define XMLREADLOOP_H #include #include "node/node.h" #define XMLReadLoop(reader, section) \ while (!reader->atEnd() && !(reader->name() == section && reader->isEndElement()) && reader->readNext()) #define XMLAttributeLoop(reader, item) \ QXmlStreamAttributes __attributes = reader->attributes(); \ foreach (const QXmlStreamAttribute& item, __attributes) Node *XMLLoadNode(QXmlStreamReader* reader); void XMLConnectNodes(const QHash &output_ptrs, const QList &desired_connections); #endif // XMLREADLOOP_H