CMS 3D CMS Logo

ReadBase.h
Go to the documentation of this file.
1 #ifndef CondTools_DQM_ReadBase_h
2 #define CondTools_DQM_ReadBase_h
3 
4 /*
5  * \class ReadBase
6  *
7  * needed for using coral
8  *
9  *
10 */
11 
12 #include <string>
13 //#include "CoralKernel/Context.h"
14 #include "RelationalAccess/ConnectionService.h"
15 #include "CoralBase/MessageStream.h"
16 
17 namespace coral {
18  //class IConnection;
19  class ISessionProxy;
20 } // namespace coral
21 
22 class ReadBase {
23 public:
24  ReadBase();
25  virtual ~ReadBase();
26  virtual void run() = 0;
27  void setVerbosityLevel(coral::MsgLevel level);
28 
29 protected:
30  coral::ISessionProxy* connect(const std::string& connectionString,
31  const std::string& user,
32  const std::string& password);
33 
34 private:
35  //coral::IConnection* m_connection;
36  coral::ConnectionService m_connectionService;
37 };
38 
39 #endif
virtual void run()=0
coral::ConnectionService m_connectionService
Definition: ReadBase.h:36
Definition: Binary.h:9
virtual ~ReadBase()
Definition: ReadBase.cc:20
coral::ISessionProxy * connect(const std::string &connectionString, const std::string &user, const std::string &password)
Definition: ReadBase.cc:24
ReadBase()
Definition: ReadBase.cc:12
void setVerbosityLevel(coral::MsgLevel level)
Definition: ReadBase.cc:50