00001 #ifndef RAWDATAPROVIDERBASE_H 00002 #define RAWDATAPROVIDERBASE_H 00003 00004 #include "GaudiKernel/ISvcLocator.h" 00005 #include "GaudiKernel/IMessageSvc.h" 00006 00008 class SvcDisable { 00009 public: 00010 SvcDisable(const std::string& svcName) : m_svcName(svcName) {} 00011 std::string m_svcName; 00012 }; 00013 00014 // RawDataProvider Base Class 00015 class RawDataProviderBase{ 00016 public: 00017 // tianhl for mt 00018 //RawDataProviderBase(); 00019 // tianhl for mt 00020 RawDataProviderBase( const char* name ); 00021 virtual ~RawDataProviderBase(){}; 00022 00023 // initialize service point 00024 StatusCode initialize(ISvcLocator* svcLoc=0, IMessageSvc* pMsg=0); 00025 00026 // set point of service 00027 void setSvcLocator(ISvcLocator* svcLoc) { m_svcLocator=svcLoc; }; 00028 void setMsgSvc(IMessageSvc* svc) { m_msgSvc=svc; }; 00029 void setMsgName(const char* name) { m_name = std::string(name); }; 00030 00031 protected: 00032 // tianhl for mt 00033 RawDataProviderBase(); 00034 // tianhl for mt 00035 ISvcLocator* m_svcLocator; 00036 IMessageSvc* m_msgSvc; 00037 std::string m_name; 00038 00039 }; 00040 #endif