Interface for writing out a serialized tree in an XML format.
#include <Workspace/DataExecution/Serialization/serializedtreexmlio.h>
◆ loadFile()
- Parameters
-
tree | The tree to load. |
fileName | The name of the file to read from containing XML data. |
- Returns
- true if the file was able to be loaded successfully, false otherwise.
Loads a SerializedTree from a file
Implements SerializedTreeIO.
◆ loadString()
- Parameters
-
tree | The tree to load. |
contents | XML content to load into the tree. |
- Returns
- true if the file was able to be loaded successfully, false otherwise.
Loads a SerializedTree from a string.
Implements SerializedTreeIO.
◆ saveFile()
bool saveFile |
( |
const SerializedTree & |
tree, |
|
|
const QString & |
fileName |
|
) |
| const |
|
overridevirtual |
- Parameters
-
tree | The tree to save. |
fileName | The name of the file to write to. |
- Returns
- true if the save was successful, false if errors were encountered.
Saves a SerializedTree to file in an XML format.
Implements SerializedTreeIO.
◆ subtreeToString()
- Parameters
-
element | The element representing the sub-tree to serialize to a string. |
- Returns
- An XML string representation of the subtree.
Serializes the sub-tree represented by element to a QString in an XML format.
Implements SerializedTreeIO.
◆ treeToString()
- Parameters
-
tree | The tree to serialize to a string. |
- Returns
- An XML string representation of the tree.
Serializes the tree to a QString in an XML format.
Implements SerializedTreeIO.