CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 }
21 
22 class ReadBase {
23  public:
24  ReadBase();
25  virtual ~ReadBase();
26  virtual void run() = 0;
27  void setVerbosityLevel( coral::MsgLevel level ) ;
28  protected:
29  coral::ISessionProxy* connect( const std::string& connectionString,
30  const std::string& user,
31  const std::string& password );
32  private:
33  //coral::IConnection* m_connection;
34  coral::ConnectionService m_connectionService;
35 };
36 
37 #endif
virtual void run()=0
coral::ConnectionService m_connectionService
Definition: ReadBase.h:34
virtual ~ReadBase()
Definition: ReadBase.cc:21
coral::ISessionProxy * connect(const std::string &connectionString, const std::string &user, const std::string &password)
Definition: ReadBase.cc:26
ReadBase()
Definition: ReadBase.cc:12
void setVerbosityLevel(coral::MsgLevel level)
Definition: ReadBase.cc:53
tuple level
Definition: testEve_cfg.py:34