CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
void setVerbosityLevel(coral::MsgLevel level)
Definition: TestBase.cc:47
virtual ~TestBase()
Definition: TestBase.cc:19
coral::IConnection * m_connection
Definition: TestBase.h:33
TestBase()
Definition: TestBase.cc:10
virtual void run()=0
tuple level
Definition: testEve_cfg.py:34
coral::ISession * connect(const std::string &connectionString, const std::string &user, const std::string &password)
Definition: TestBase.cc:24