Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:18

0001 #ifndef CondTools_RunInfo_TestBase_H
0002 #define CondTools_RunInfo_TestBase_H
0003 
0004 /*
0005  *  \class TestBase
0006  *  
0007  *  needed for using  coral 
0008  *  
0009  *  
0010 */
0011 
0012 #include <string>
0013 #include "CoralKernel/Context.h"
0014 #include "CoralBase/MessageStream.h"
0015 
0016 //#include "SealKernel/IMessageService.h"
0017 
0018 namespace coral {
0019   class IConnection;
0020   class ISession;
0021 }  // namespace coral
0022 
0023 class TestBase {
0024 public:
0025   TestBase();
0026   virtual ~TestBase();
0027   virtual void run() = 0;
0028   void setVerbosityLevel(coral::MsgLevel level);
0029 
0030 protected:
0031   coral::ISession* connect(const std::string& connectionString, const std::string& user, const std::string& password);
0032 
0033 private:
0034   //seal::Handle<seal::Context> m_context;
0035   coral::IConnection* m_connection;
0036 };
0037 
0038 #endif