/search.css" rel="stylesheet" type="text/css"/> /search.js">
Namespaces | |
namespace | Options |
Classes | |
class | IMessageSvcHolder |
get a IMessageSvc* on 1st use (if not set) and release it on ~ More... | |
class | MsgStreamMember |
Functions | |
IMessageSvc * | getMessageSvc () |
returns a pointer to the Gaudi IMessageSvc interface | |
IMessageSvc * | getMessageSvc (const Options::CreateOptions o) |
IMessageSvc * Dyb::getMessageSvc | ( | ) |
returns a pointer to the Gaudi IMessageSvc interface
o | : if o is Dyb::Options::Eager it will create a MessageSvc instance if it is not there already. The default is to be lazy and don't create anything. |
Definition at line 13 of file getMessageSvc.cc.
{ return getMessageSvc( Options::Lazy ); }
IMessageSvc * Dyb::getMessageSvc | ( | const Options::CreateOptions | o | ) |
Definition at line 14 of file getMessageSvc.cc.
{ IMessageSvc* pSvc(0); const bool createIf( opt == Dyb::Options::Eager ); if (!(Gaudi::svcLocator()->service("MessageSvc", pSvc, createIf)).isSuccess()) cerr << "Dyb::getMessageSvc: WARNING MessageSvc not found, will use std::cerr" << endl; return pSvc; }