#include <DatabaseMgr.h>
Public Member Functions | |
Database * | DB () |
Returns a pointer to the Database. | |
Database & | DBref () |
Returns a reference to the Database. | |
Static Public Member Functions | |
static void | Initialize (const std::string &path) |
Initialize the DatabaseMgr with a specific path. | |
Friends | |
class | Singleton< DatabaseMgr > |
Before calling the Get
method Initialize
should have been called at least once. Initialize
will set the path to the database to use when the instance is created. Since the path is specific to each instance each call to Free
should be followed by Initialize
. Ofcourse, the last call to Free
(when shutting down) should not be followed by Initialize
.
Definition at line 44 of file DatabaseMgr.h.
static void DatabaseMgr::Initialize | ( | const std::string & | path | ) | [static] |
Initialize the DatabaseMgr with a specific path.