DatabaseMgr Class Reference

This class manages the database connection. More...

#include <DatabaseMgr.h>

Inheritance diagram for DatabaseMgr:

Inheritance graph
[legend]

List of all members.

Public Member Functions

DatabaseDB ()
 Returns a pointer to the Database.
DatabaseDBref ()
 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 >


Detailed Description

This class manages the database connection.

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.

See also:
Get

Initialize

Free

Definition at line 44 of file DatabaseMgr.h.


Member Function Documentation

static void DatabaseMgr::Initialize ( const std::string &  path  )  [static]

Initialize the DatabaseMgr with a specific path.

Database* DatabaseMgr::DB (  ) 

Returns a pointer to the Database.

Database& DatabaseMgr::DBref (  ) 

Returns a reference to the Database.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo