|
XML writer class used to build XML representations of State objects. More...
#include <ArmarXGui/gui-plugins/StatechartEditorPlugin/io/XmlWriter.h>
Public Member Functions | |
QString | getXmlString (bool indent=true) const |
Builds the XML document for the state object that has been handled by serialize() before. More... | |
void | serialize (armarx::statechartmodel::StateCPtr state, const QMap< QString, StateTreeNodePtr > &uuidToNodeMap=QMap< QString, StateTreeNodePtr >()) |
Builds XML data structures for serialization of the given state object. More... | |
XmlWriter (const VariantInfoPtr &variantInfo) | |
Public Member Functions inherited from Visitor | |
virtual | ~Visitor () |
Protected Member Functions | |
void | visitDynamicRemoteState (armarx::statechartmodel::DynamicRemoteStateCPtr dynamicRemoteState) override |
void | visitEndState (armarx::statechartmodel::EndStateCPtr endState) override |
void | visitLocalState (armarx::statechartmodel::LocalStateCPtr localState) override |
void | visitRemoteState (armarx::statechartmodel::RemoteStateCPtr remoteState) override |
XML writer class used to build XML representations of State objects.
Definition at line 61 of file XmlWriter.h.
XmlWriter | ( | const VariantInfoPtr & | variantInfo | ) |
Definition at line 41 of file XmlWriter.cpp.
QString getXmlString | ( | bool | indent = true | ) | const |
Builds the XML document for the state object that has been handled by serialize() before.
indent | Whether to indent the resulting XML document (for output in a file) or to output unindented XML (for snapshots). |
Definition at line 84 of file XmlWriter.cpp.
void serialize | ( | armarx::statechartmodel::StateCPtr | state, |
const QMap< QString, StateTreeNodePtr > & | uuidToNodeMap = QMap<QString, StateTreeNodePtr>() |
||
) |
Builds XML data structures for serialization of the given state object.
Afterwards, the resulting XML document can be generated using the getXmlString() method.
state | State object that should be serialized to XML. |
Definition at line 45 of file XmlWriter.cpp.
|
overrideprotectedvirtual |
Implements Visitor.
Definition at line 111 of file XmlWriter.cpp.
|
overrideprotectedvirtual |
Implements Visitor.
Definition at line 121 of file XmlWriter.cpp.
|
overrideprotectedvirtual |
Implements Visitor.
Definition at line 92 of file XmlWriter.cpp.
|
overrideprotectedvirtual |
Implements Visitor.
Definition at line 101 of file XmlWriter.cpp.