openModeller
Version 1.5.0
|
Manages TeDatabases connections. More...
#include <TeDatabaseManager.hh>
Public Member Functions | |
TeDatabase * | create (const TeDatabaseFactoryParams ¶ms) |
Return a TeDatabase pointer if it exists or create a new one. More... | |
Static Public Member Functions | |
static TeDatabaseManager & | instance () |
Singleton pattern. More... | |
Private Types | |
typedef map< string, TeDatabase * > | MapManager |
Map of TeDatabase and identifiers. More... | |
Private Member Functions | |
TeDatabaseManager () | |
No build allowed. More... | |
TeDatabaseManager (const TeDatabaseManager &) | |
No copy allowed. More... | |
TeDatabaseManager & | operator= (const TeDatabaseManager &) |
No copy allowed. More... | |
~TeDatabaseManager () | |
No destruct allowed. More... | |
Private Attributes | |
MapManager | mapManager_ |
Map of TeDatabase and identifiers. More... | |
Manages TeDatabases connections.
Verify if exists one connection to a specified TeDatabaseFactoryParams and return it or a new connection. Obs: Don't delete the TeDatabase pointer or close the connection.
Definition at line 47 of file TeDatabaseManager.hh.
|
private |
Map of TeDatabase and identifiers.
Definition at line 51 of file TeDatabaseManager.hh.
|
inlineprivate |
No build allowed.
Singleton pattern doesn't allows a public constuctor.
Definition at line 75 of file TeDatabaseManager.hh.
|
private |
No copy allowed.
|
private |
No destruct allowed.
Descturctor.
Delete all opened databases.
Definition at line 73 of file TeDatabaseManager.cpp.
TeDatabase * TeDatabaseManager::create | ( | const TeDatabaseFactoryParams & | params | ) |
Return a TeDatabase pointer if it exists or create a new one.
params | TeDatabaseFactoryParams. Obs: The TeDatabase is already connected. |
Definition at line 49 of file TeDatabaseManager.cpp.
References mapManager_.
Referenced by TerralibRaster::createTeRaster(), TerralibRaster::deleteRaster(), TeOccurrences::load(), and TerralibRaster::openTeRaster().
|
static |
Singleton pattern.
Returns the unique instance of TeDatabaseManager.
Singleton pattern
Definition at line 37 of file TeDatabaseManager.cpp.
Referenced by TerralibRaster::createTeRaster(), TerralibRaster::deleteRaster(), TeOccurrences::load(), and TerralibRaster::openTeRaster().
|
private |
No copy allowed.
|
private |
Map of TeDatabase and identifiers.
Definition at line 69 of file TeDatabaseManager.hh.
Referenced by create().