Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:44

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