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_DQM_TestBase_h
2 #define CondTools_DQM_TestBase_h
3 
4 /*
5  * \class TestBase
6  *
7  * needed for using coral
8  *
9  *
10 */
11 
12 #include <string>
13 #include "CoralKernel/Context.h"
14 #include "CoralBase/MessageStream.h"
15 
16 namespace coral {
17  class IConnection;
18  class ISession;
19 }
20 
21 class TestBase {
22 public:
23  TestBase();
24  virtual ~TestBase();
25  virtual void run() = 0;
26  void setVerbosityLevel( coral::MsgLevel level ) ;
27 protected:
28  coral::ISession* connect( const std::string& connectionString,
29  const std::string& user,
30  const std::string& password );
31 
32 private:
33  coral::IConnection* m_connection;
34 };
35 
36 #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
string connectionString
Definition: autoCondHLT.py:4
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