4#ifndef MESSAGESVCPROVIDER_H
5#define MESSAGESVCPROVIDER_H
8#include "GaudiKernel/Bootstrap.h"
9#include "GaudiKernel/ISvcLocator.h"
10#include "GaudiKernel/IMessageSvc.h"
11#include "GaudiKernel/IService.h"
12#include "GaudiKernel/MsgStream.h"
32 ISvcLocator* serviceLocator = Gaudi::svcLocator();
35 StatusCode sc = serviceLocator->service(
"MessageSvc",m_pMsgSvc);
36 if(sc.isFailure()) exit(1);
39 if(!m_pMsgSvc) exit(1);
51 IMessageSvc* m_pMsgSvc;
Class that provides message services. Add to any classes that need message services.
static MessageSvcProvider * instance()