XmlDataStore Class Reference

A xml based persistence backend. More...

#include <xmldatastore.h>

Inheritance diagram for XmlDataStore:
AbstractDataStore

List of all members.

Public Slots

void saveNode (Node *node)

Public Member Functions

 XmlDataStore ()
 ~XmlDataStore ()
NodegetRootNode ()
NodegetNode (NodeId id)
LabelgetRootLabel ()
void removeNode (Node *node)
void addNode (Node *node)
void addLabel (Label *label)
void removeLabel (Label *label)

Detailed Description

A xml based persistence backend.

This implementation of the AbstractDataStore can save the nodes and labels to a singel xml file.

Author:
Manuel Unglaub

Constructor & Destructor Documentation

XmlDataStore::XmlDataStore (  ) 

The constructor.

Constructs the XmlDataStore.

XmlDataStore::~XmlDataStore (  ) 

The destructor.

Destroys the object.


Member Function Documentation

void XmlDataStore::addLabel ( Label label  )  [virtual]

Add a label to the persistence layer.

Parameters:
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.

Parameters:
node The node which will be added to the persistence layer.

Implements AbstractDataStore.

Node * XmlDataStore::getNode ( NodeId  id  )  [virtual]

Get a specific Node.

Parameters:
id The id of the requested node.
Returns:
The node with the provided id or 0 if the node was not found.

Implements AbstractDataStore.

Label * XmlDataStore::getRootLabel (  )  [virtual]

Get the root label of the hierarchical label structure.

Returns:
The root of the label structure.

Implements AbstractDataStore.

Node * XmlDataStore::getRootNode (  )  [virtual]

Get the node whose childs are the first level of nodes.

Returns:
The root of the nodes.

Implements AbstractDataStore.

void XmlDataStore::removeLabel ( Label label  )  [virtual]

Remove a label from the persistence layer.

Parameters:
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.

Parameters:
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.

Parameters:
node This node will be saved with all its changes.

Implements AbstractDataStore.


The documentation for this class was generated from the following files:
Generated on Fri May 14 19:12:54 2010 for Silence by  doxygen 1.6.3