#include <MessageSvcProvider.h>
Public Member Functions | |
~MessageSvcProvider () | |
IMessageSvc * | msgSvc () |
Static Public Member Functions | |
static MessageSvcProvider * | instance () |
Private Member Functions | |
MessageSvcProvider () | |
Private Attributes | |
IMessageSvc * | m_pMsgSvc |
Static Private Attributes | |
static MessageSvcProvider * | s_instancePointer = NULL |
Definition at line 17 of file MessageSvcProvider.h.
MessageSvcProvider::~MessageSvcProvider | ( | ) | [inline] |
MessageSvcProvider::MessageSvcProvider | ( | ) | [inline, private] |
MessageSvcProvider * MessageSvcProvider::instance | ( | ) | [static] |
Definition at line 5 of file MessageSvcProvider.cxx.
References s_instancePointer.
Referenced by HltProcessor::MyFrame::MyFrame(), HltProcessor::Sequence::Sequence(), and HltProcessor::Signature::Signature().
00005 { 00006 if (s_instancePointer == NULL) { 00007 s_instancePointer = new MessageSvcProvider; 00008 } 00009 return s_instancePointer; 00010 }
IMessageSvc* MessageSvcProvider::msgSvc | ( | ) | [inline] |
Definition at line 30 of file MessageSvcProvider.h.
References m_pMsgSvc.
Referenced by HltProcessor::Signature::print(), and HltProcessor::Sequence::print().
00030 { 00031 // if(!m_pMsgSvc){ 00032 ISvcLocator* serviceLocator = Gaudi::svcLocator(); 00033 //IService* theSvc; 00034 //std::cout<<"!!!!!!!!!!!!!!!!!1"<<std::endl; 00035 StatusCode sc = serviceLocator->service("MessageSvc",m_pMsgSvc); 00036 if(sc.isFailure()) exit(1); // Service [MessageSvc] not found 00037 //std::cout<<"!!!!!!!!!!!!!!!!!2"<<std::endl; 00038 //m_pMsgSvc = dynamic_cast<IMessageSvc*>(theSvc); 00039 if(!m_pMsgSvc) exit(1); // Dynamic cast IService --> IMessageSvc failed 00040 // } 00041 //std::cout<<"!!!!!!!!!!!!!!!!!3"<<std::endl; 00042 return m_pMsgSvc; 00043 }
IMessageSvc * MessageSvcProvider::m_pMsgSvc [private] |
MessageSvcProvider * MessageSvcProvider::s_instancePointer = NULL [static, private] |