added save functions to various classes
Each class is responsible for its own saving and loading from the XML data in order to reduce the complexity of the save code.
This commit is contained in:
@@ -40,3 +40,16 @@ QString NodeOutput::name()
|
||||
|
||||
return NodeParam::name();
|
||||
}
|
||||
|
||||
void NodeOutput::Save(QXmlStreamWriter *writer) const
|
||||
{
|
||||
writer->writeStartElement("output");
|
||||
|
||||
writer->writeAttribute("id", id());
|
||||
|
||||
writer->writeAttribute("ptr", QString::number(reinterpret_cast<quintptr>(this)));
|
||||
|
||||
SaveConnections(writer);
|
||||
|
||||
writer->writeEndElement(); // output
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user