#include <cFibDatabase.h>
List of all members.
Detailed Description
Definition at line 58 of file cFibDatabase.h.
Constructor & Destructor Documentation
fib::cFibDatabase::cFibDatabase |
( |
| ) |
|
|
private |
virtual fib::cFibDatabase::~cFibDatabase |
( |
| ) |
|
|
virtual |
Member Function Documentation
void fib::cFibDatabase::freeFibObject |
( |
const longFib |
lIdentifer | ) |
|
std::list< longFib > fib::cFibDatabase::getAllDatabaseObjectIdentifiers |
( |
| ) |
const |
This method returns the identifiers of all database objects, in the actual database.
- Returns:
- the identifiers of all database objects
static std::string fib::cFibDatabase::getDatabasePath |
( |
| ) |
|
|
static |
- See also:
- szDatabasePath
- Returns:
- a string to the actual set database path, the string is empty if no database path is set
cRoot* fib::cFibDatabase::getFibObject |
( |
const longFib |
lIdentifer | ) |
|
This method returns the database Fib object for the identifer, if it exists.
- See also:
- loadFibObject()
-
mapLoadedDatabaseObjects
-
setDatabaseIdentifiers
- Parameters:
-
lIdentifer | the identifer of the Fib object to return |
- Returns:
- the Fib object for the identifer lIdentifer or NULL if non such exists
- Returns:
- a instance of the database object
std::map< longFib, cRoot * > fib::cFibDatabase::getLoadedDatabaseObjects |
( |
| ) |
|
- Returns:
- A map with the loaded Fib database objects. map entries: key: the identifer of the database object value: the loaded database object for the identifier
- See also:
- mapLoadedDatabaseObjects
void fib::cFibDatabase::loadFibObject |
( |
const longFib |
lIdentifer | ) |
|
This method loads the Fib object for the identifier. If you load Fib objects some time befor you want it (call getFibObject() for them) this could speed up the process. This method won't load Fib objects that are allready loaded.
- See also:
- getFibObject()
-
reloadDatabase()
-
mapLoadedDatabaseObjects
-
setDatabaseIdentifiers
- Parameters:
-
lIdentifer | the identifer of the Fib object to load |
static bool fib::cFibDatabase::loadListContainedDbObjects |
( |
cFolder & |
folder | ) |
|
|
staticprivate |
This method loads the database folder data. (Attention: No mutex variables are used in this method.)
- See also:
- liDatabaseIdentifiers
-
mapDatabaseIdentifiers
- Parameters:
-
folder | the database folder from which to load the data |
- Returns:
- true if the data was loaded, else false
bool fib::cFibDatabase::reloadDatabase |
( |
| ) |
|
This method reloads all Fib database objects identifiers from the set database path. No database objects will be loaded after the reload.
- See also:
- szDatabasePath
-
mapLoadedDatabaseObjects
- Returns:
- true if the database objects identifiers could be reloded (the database path exists), else false
static bool fib::cFibDatabase::searchForDatabasePath |
( |
| ) |
|
|
static |
This function search standard Fib database paths to find a valid Fib database and sets the first found Fib database path if one was found.
- See also:
- szDatabasePath
-
szStandardDatabaseFolder
- Returns:
- true if a Fib database (path) was found and was set, else false and the database path is not changed
static bool fib::cFibDatabase::setDatabasePath |
( |
const char * |
szInDatabasePath | ) |
|
|
static |
This function sets the Fib database path to the given path if possible.
- See also:
- szDatabasePath
- Parameters:
-
szInDatabasePath | the path to the folder with the Fib database objects |
- Returns:
- true if the given Fib database path exists and was set, else false and the database path is not changed
static bool fib::cFibDatabase::setDatabasePath |
( |
const std::string |
szInDatabasePath | ) |
|
|
static |
This function sets the Fib database path to the given path if posible.
- See also:
- szDatabasePath
- Parameters:
-
szInDatabasePath | the path to the folder with the Fib database objects |
- Returns:
- true if the given Fib database path exists and was set, else false and the database path is not changed
Friends And Related Function Documentation
friend class cFibDatabaseDeleter |
|
friend |
Member Data Documentation
This class is for deleting the database when the programm ends.
Definition at line 107 of file cFibDatabase.h.
std::list< longFib > fib::cFibDatabase::liDatabaseIdentifiers |
|
staticprivate |
std::map< longFib, std::string > fib::cFibDatabase::mapDatabaseIdentifiers |
|
staticprivate |
The set with the identifiers for all database objects. map entries: key: the identifer of the database object value: the name of the file for the object in the database folder
Definition at line 88 of file cFibDatabase.h.
std::map< longFib, cRoot * > fib::cFibDatabase::mapLoadedDatabaseObjects |
|
staticprivate |
A map with the loaded Fib database objects. map entries: key: the identifer of the database object value: the loaded database object for the identifier
Definition at line 80 of file cFibDatabase.h.
std::string fib::cFibDatabase::szDatabasePath |
|
staticprivate |
The path to the actual loaded database.
Definition at line 72 of file cFibDatabase.h.
The documentation for this class was generated from the following file: