Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:44:51

0001 #ifndef ConnectionManager_hh_included
0002 #define ConnectionManager_hh_included
0003 
0004 #include <string>
0005 
0006 namespace oracle {
0007   namespace occi {
0008     class Connection;
0009     class Environment;
0010     class Statement;
0011   }  // namespace occi
0012 }  // namespace oracle
0013 
0014 class ConnectionManager {
0015 public:
0016   ConnectionManager();
0017   bool connect();
0018   oracle::occi::Statement* getStatement(const std::string& query);
0019   void disconnect();
0020 
0021 private:
0022   oracle::occi::Environment* env;
0023   oracle::occi::Connection* conn;
0024 };
0025 
0026 #endif