CMS 3D CMS Logo

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