Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef RPCDBCOM_H
0002 #define RPCDBCOM_H
0003 
0004 #include <string>
0005 #include "CoralBase/MessageStream.h"
0006 
0007 namespace coral {
0008   class IConnection;
0009   class ISession;
0010 }  // namespace coral
0011 
0012 class RPCDBCom {
0013 public:
0014   RPCDBCom();
0015   virtual ~RPCDBCom();
0016   virtual void run() = 0;
0017   void setVerbosityLevel(coral::MsgLevel level);
0018 
0019 protected:
0020   coral::ISession* connect(const std::string& connectionString,
0021                            const std::string& userName,
0022                            const std::string& password);
0023 
0024 private:
0025   coral::IConnection* m_connection;
0026 };
0027 
0028 #endif