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