// ********************************************************************** // // Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #ifndef CURRENT_DATABASE_H #define CURRENT_DATABASE_H #include #include #include // // Provides a Database object for each thread. // class CurrentDatabase { public: CurrentDatabase(const Ice::CommunicatorPtr&, const std::string&, const std::string&); ~CurrentDatabase(); Database& get(); private: const Ice::CommunicatorPtr _communicator; const std::string _envName; const std::string _dbName; IceUtil::Mutex _dbListMutex; std::list _dbList; }; #endif