openModeller
Version 1.4.0
|
00001 00030 #ifndef TE_DATABASE_MANAGER_HH 00031 #define TE_DATABASE_MANAGER_HH 00032 00033 #include <TeDatabaseFactory.h> 00034 #include <TeDatabaseFactoryParams.h> 00035 00036 #include <string> 00037 using std::string; 00038 00039 #include <map> 00040 using std::map; 00041 00043 00047 class TeDatabaseManager 00048 { 00049 private: 00051 typedef map<string, TeDatabase*> MapManager; 00052 00053 public: 00055 00058 static TeDatabaseManager& instance(); 00059 00061 00065 TeDatabase* create( const TeDatabaseFactoryParams& params ); 00066 00067 private: 00069 MapManager mapManager_; 00070 00072 00075 TeDatabaseManager() {}; 00077 TeDatabaseManager(const TeDatabaseManager&); 00079 TeDatabaseManager& operator=(const TeDatabaseManager&); 00081 ~TeDatabaseManager(); 00082 }; 00083 00084 #endif