Should address any XML parsing issues and allows for simpler, more maintainable code. Should also address a crash that could occur when pasting nodes that had inputs that weren't copied.
19 lines
527 B
C
19 lines
527 B
C
#ifndef XMLREADLOOP_H
|
|
#define XMLREADLOOP_H
|
|
|
|
#include <QXmlStreamReader>
|
|
|
|
#include "node/node.h"
|
|
|
|
#define XMLAttributeLoop(reader, item) \
|
|
QXmlStreamAttributes __attributes = reader->attributes(); \
|
|
foreach (const QXmlStreamAttribute& item, __attributes)
|
|
|
|
Node *XMLLoadNode(QXmlStreamReader* reader);
|
|
|
|
void XMLConnectNodes(const QHash<quintptr, NodeOutput *> &output_ptrs, const QList<NodeParam::SerializedConnection> &desired_connections);
|
|
|
|
bool XMLReadNextStartElement(QXmlStreamReader* reader);
|
|
|
|
#endif // XMLREADLOOP_H
|