MessageSvcProvider Class Reference

Class that provides message services. Add to any classes that need message services. More...

#include <MessageSvcProvider.h>

List of all members.

Public Member Functions

 ~MessageSvcProvider ()
IMessageSvc * msgSvc ()

Static Public Member Functions

static MessageSvcProviderinstance ()

Private Member Functions

 MessageSvcProvider ()

Private Attributes

IMessageSvc * m_pMsgSvc

Static Private Attributes

static MessageSvcProviders_instancePointer = NULL


Detailed Description

Class that provides message services. Add to any classes that need message services.

Definition at line 17 of file MessageSvcProvider.h.


Constructor & Destructor Documentation

MessageSvcProvider::~MessageSvcProvider (  )  [inline]

Definition at line 22 of file MessageSvcProvider.h.

00022 {}

MessageSvcProvider::MessageSvcProvider (  )  [inline, private]

Definition at line 48 of file MessageSvcProvider.h.

00048 : m_pMsgSvc(0){}


Member Function Documentation

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   }


Member Data Documentation

IMessageSvc * MessageSvcProvider::m_pMsgSvc [private]

See also:
msgSvc()

Definition at line 51 of file MessageSvcProvider.h.

Referenced by msgSvc().

MessageSvcProvider * MessageSvcProvider::s_instancePointer = NULL [static, private]

Definition at line 46 of file MessageSvcProvider.h.

Referenced by instance().


Generated on Tue Nov 29 23:20:25 2016 for BOSS_7.0.2 by  doxygen 1.4.7