CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/CondTools/DQM/interface/ReadBase.h

Go to the documentation of this file.
00001 #ifndef CondTools_DQM_ReadBase_h
00002 #define CondTools_DQM_ReadBase_h
00003 
00004 /*
00005  *  \class ReadBase
00006  *  
00007  *  needed for using  coral 
00008  *  
00009  *  
00010 */
00011 
00012 #include <string>
00013 //#include "CoralKernel/Context.h"
00014 #include "RelationalAccess/ConnectionService.h"
00015 #include "CoralBase/MessageStream.h"
00016 
00017 namespace coral {
00018   //class IConnection;
00019   class ISessionProxy;
00020 }
00021 
00022 class ReadBase {
00023  public:
00024   ReadBase();
00025   virtual ~ReadBase();
00026   virtual void run() = 0;
00027   void setVerbosityLevel( coral::MsgLevel level ) ;
00028  protected:
00029   coral::ISessionProxy* connect( const std::string& connectionString,
00030                                  const std::string& user, 
00031                                  const std::string& password );
00032  private:
00033   //coral::IConnection* m_connection;
00034   coral::ConnectionService m_connectionService;
00035 };
00036 
00037 #endif