CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondTools/RPC/interface/RPCDBCom.h

Go to the documentation of this file.
00001 #ifndef RPCDBCOM_H
00002 #define RPCDBCOM_H
00003 
00004 #include <string>
00005 #include "CoralBase/MessageStream.h"
00006 
00007 namespace coral {
00008   class IConnection;
00009   class ISession;
00010 }
00011 
00012 class RPCDBCom
00013 {
00014  public:
00015   RPCDBCom();
00016   virtual ~RPCDBCom();
00017   virtual void run() = 0;
00018   void setVerbosityLevel( coral::MsgLevel level );
00019 
00020  protected:
00021   coral::ISession* connect( const std::string& connectionString,
00022                             const std::string& userName,
00023                             const std::string& password );
00024 
00025  private:
00026   coral::IConnection*         m_connection;
00027 };
00028 
00029 #endif
00030