CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/CondTools/RunInfo/interface/TestBase.h

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