#include <DatabaseManager.h>
Inheritance diagram for DatabaseManager:
Public Member Functions | |
DatabaseManager (const char *path) | |
virtual | ~DatabaseManager () |
virtual void | run ()=0 |
start the manager | |
virtual void | addEntry (string ident, DOMNode *parent=0)=0 |
add database entry | |
virtual string | getEntryDetails (int)=0 |
returns a formatted string for display containing all details listed for plugin 'id' in db | |
virtual multimap< string, map< int, string > > | getEntryMap ()=0 |
returns a formatted string for display containing all details listed for plugin 'id' in db | |
virtual bool | deleteEntry (int)=0 |
removes plugin from database. checks before, whether any other plugin depends on ID | |
virtual void | init () |
initialize database | |
string | getDBName () |
returns database name | |
int | getLastAddedID () |
returns last added id | |
Protected Attributes | |
bool | is_initialized |
int | last_id |
Private Member Functions | |
DatabaseManager (const DatabaseManager &x) | |
hidden copy constructor - we do not want to accidentially copy objects |
|
hidden copy constructor - we do not want to accidentially copy objects
|
|
|
|
|
|
add database entry
Implemented in ExperimentManager, and PluginManager.
|
|
removes plugin from database. checks before, whether any other plugin depends on ID
Implemented in ExperimentManager, and PluginManager.
|
|
returns database name return filename of the database with absolute path |
|
returns a formatted string for display containing all details listed for plugin 'id' in db
Implemented in ExperimentManager, and PluginManager.
|
|
returns a formatted string for display containing all details listed for plugin 'id' in db
Implemented in ExperimentManager, and PluginManager.
|
|
returns last added id return id of last entry that's been added to the database |
|
initialize database read XML file and read plugins from there into a structured list Implements XMLHandler.
|
|
start the manager
Implemented in ExperimentManager, and PluginManager.
|
|
function init() has been called |
|
|