File indexing completed on 2024-04-06 12:02:44
0001 #ifndef CondTools_DQM_TestBase_h
0002 #define CondTools_DQM_TestBase_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <string>
0013 #include "CoralKernel/Context.h"
0014 #include "CoralBase/MessageStream.h"
0015
0016 namespace coral {
0017 class IConnection;
0018 class ISession;
0019 }
0020
0021 class TestBase {
0022 public:
0023 TestBase();
0024 virtual ~TestBase();
0025 virtual void run() = 0;
0026 void setVerbosityLevel(coral::MsgLevel level);
0027
0028 protected:
0029 coral::ISession* connect(const std::string& connectionString, const std::string& user, const std::string& password);
0030
0031 private:
0032 coral::IConnection* m_connection;
0033 };
0034
0035 #endif