A xml based persistence backend. More...
#include <xmldatastore.h>
Public Slots | |
void | saveNode (Node *node) |
Public Member Functions | |
XmlDataStore () | |
~XmlDataStore () | |
Node * | getRootNode () |
Node * | getNode (NodeId id) |
Label * | getRootLabel () |
void | removeNode (Node *node) |
void | addNode (Node *node) |
void | addLabel (Label *label) |
void | removeLabel (Label *label) |
A xml based persistence backend.
This implementation of the AbstractDataStore can save the nodes and labels to a singel xml file.
XmlDataStore::XmlDataStore | ( | ) |
The constructor.
Constructs the XmlDataStore.
XmlDataStore::~XmlDataStore | ( | ) |
The destructor.
Destroys the object.
void XmlDataStore::addLabel | ( | Label * | label | ) | [virtual] |
Add a label to the persistence layer.
label | The label wich will be added to the persistence layer. |
Implements AbstractDataStore.
void XmlDataStore::addNode | ( | Node * | node | ) | [virtual] |
Add a node to the persistence layer.
node | The node which will be added to the persistence layer. |
Implements AbstractDataStore.
Get a specific Node.
id | The id of the requested node. |
Implements AbstractDataStore.
Label * XmlDataStore::getRootLabel | ( | ) | [virtual] |
Get the root label of the hierarchical label structure.
Implements AbstractDataStore.
Node * XmlDataStore::getRootNode | ( | ) | [virtual] |
Get the node whose childs are the first level of nodes.
Implements AbstractDataStore.
void XmlDataStore::removeLabel | ( | Label * | label | ) | [virtual] |
Remove a label from the persistence layer.
label | The label which will be removed from the persistence layer. |
Implements AbstractDataStore.
void XmlDataStore::removeNode | ( | Node * | node | ) | [virtual] |
Remove a node with all its subnodes from the persistence layer.
node | The node which will be removed from the persistence layer. |
Implements AbstractDataStore.
void XmlDataStore::saveNode | ( | Node * | node | ) | [virtual, slot] |
Save a node which has changed.
node | This node will be saved with all its changes. |
Implements AbstractDataStore.