#include <DB.hpp>
Inheritance diagram for DB::

Public Methods | |
| virtual | ~DB () |
| virtual Folder * | getRoot ()=0 |
| virtual vector< Node *> & | getChildren (Folder &parent)=0 |
| virtual Node * | getNode (const string &path)=0 |
| virtual Folder * | getFolder (const string &path)=0 |
| virtual Bookmark * | getBookmark (const string &path)=0 |
| virtual void | remove (Node *node, bool recurse=false)=0 |
| virtual void | save (Node *node)=0 |
| virtual void | connect (const string &database, const string &user_name, const string &password)=0 |
| virtual void | disconnect ()=0 |
Protected Attributes | |
| string | _database |
| string | _username |
| string | _password |
|
|
Destructor. |
|
||||||||||||||||
|
Connect to the database.
Reimplemented in DbXML. |
|
|
Terminate the connection from the database. If you don't disconnect using this method you may not safely assume that the database is in a consistent state. Reimplemented in DbXML. |
|
|
Return a bookmark by path. The path must start with a slash.
Reimplemented in DbXML. |
|
|
Return all direct children of a specified node.
Reimplemented in DbXML. |
|
|
Reimplemented in DbXML. |
|
|
Return a node by path. The path must start with a slash.
Reimplemented in DbXML. |
|
|
Return the root folder.
Reimplemented in DbXML. |
|
||||||||||||
|
Delete this node physically from the database.
Reimplemented in DbXML. |
|
|
Save the item back to the database.
Reimplemented in DbXML. |
|
|
The name of the database to connect to. This may for example be a filename for some backends. |
|
|
Password required to connect to the database. |
|
|
Username required to connect to the database. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001