AbstractDataStore Class Reference

An abstract class for the persistence backend. More...

#include <abstractdatastore.h>

Inheritance diagram for AbstractDataStore:
XmlDataStore

List of all members.

Public Slots

virtual void saveNode (Node *node)=0

Public Member Functions

virtual NodegetRootNode ()=0
virtual NodegetNode (NodeId id)=0
virtual LabelgetRootLabel ()=0
virtual void removeNode (Node *node)=0
virtual void addNode (Node *node)=0
virtual void addLabel (Label *label)=0
virtual void removeLabel (Label *label)=0

Detailed Description

An abstract class for the persistence backend.

Implement this abstract class to create a persistence layer for this application. Which implementation of this class is used will be decided in the Controller.

Author:
Manuel Unglaub

Member Function Documentation

virtual void AbstractDataStore::addLabel ( Label label  )  [pure virtual]

Add a label to the persistence layer.

Parameters:
label The label wich will be added to the persistence layer.

Implemented in XmlDataStore.

virtual void AbstractDataStore::addNode ( Node node  )  [pure virtual]

Add a node to the persistence layer.

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

Implemented in XmlDataStore.

virtual Node* AbstractDataStore::getNode ( NodeId  id  )  [pure 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.

Implemented in XmlDataStore.

virtual Label* AbstractDataStore::getRootLabel (  )  [pure virtual]

Get the root label of the hierarchical label structure.

Returns:
The root of the label structure.

Implemented in XmlDataStore.

virtual Node* AbstractDataStore::getRootNode (  )  [pure virtual]

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

Returns:
The root of the nodes.

Implemented in XmlDataStore.

virtual void AbstractDataStore::removeLabel ( Label label  )  [pure virtual]

Remove a label from the persistence layer.

Parameters:
label The label which will be removed from the persistence layer.

Implemented in XmlDataStore.

virtual void AbstractDataStore::removeNode ( Node node  )  [pure virtual]

Remove a node with all its subnodes from the persistence layer.

Parameters:
node The node which will be removed from the persistence layer.

Implemented in XmlDataStore.

virtual void AbstractDataStore::saveNode ( Node node  )  [pure virtual, slot]

Save a node which has changed.

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

Implemented in XmlDataStore.


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