| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

ServiceLocatorHelper Class Reference

an helper to share the implementation of service() among the various kernel base classes $Id: More...

#include <ServiceLocatorHelper.h>

Collaboration diagram for ServiceLocatorHelper:

[legend]
List of all members.

Public Member Functions

 ServiceLocatorHelper (ISvcLocator &svcLoc, MsgStream &log, const std::string &requestorName)
StatusCode getService (const std::string &name, bool createIf, const InterfaceID &iid, void **ppSvc) const
StatusCode locateService (const std::string &name, const InterfaceID &iid, void **ppSvc, bool quiet=false) const
StatusCode createService (const std::string &name, const InterfaceID &iid, void **ppSvc) const
StatusCode createService (const std::string &type, const std::string &name, const InterfaceID &iid, void **ppSvc) const

Private Member Functions

std::string threadName () const
std::string threadedName (const std::string &name) const
bool isInThread () const
ISvcLocatorserviceLocator () const
MsgStreamlog () const
const std::string & requestorName () const

Private Attributes

ISvcLocatorm_svcLoc
MsgStreamm_msgLog
std::string m_requestorName

Detailed Description

an helper to share the implementation of service() among the various kernel base classes $Id:

Definition at line 15 of file ServiceLocatorHelper.h.


Constructor & Destructor Documentation

ServiceLocatorHelper::ServiceLocatorHelper ( ISvcLocator svcLoc,
MsgStream log,
const std::string &  requestorName 
) [inline]

Definition at line 17 of file ServiceLocatorHelper.h.

00019                                                 :
00020     m_svcLoc(svcLoc), m_msgLog(log), m_requestorName(requestorName) {}


Member Function Documentation

StatusCode ServiceLocatorHelper::getService ( const std::string &  name,
bool  createIf,
const InterfaceID iid,
void **  ppSvc 
) const [inline]

Definition at line 22 of file ServiceLocatorHelper.h.

00025                                             {
00026     return (createIf ? 
00027             createService(name, iid, ppSvc) : 
00028             locateService(name, iid, ppSvc, true));
00029   }

StatusCode ServiceLocatorHelper::locateService ( const std::string &  name,
const InterfaceID iid,
void **  ppSvc,
bool  quiet = false 
) const

StatusCode ServiceLocatorHelper::createService ( const std::string &  name,
const InterfaceID iid,
void **  ppSvc 
) const

StatusCode ServiceLocatorHelper::createService ( const std::string &  type,
const std::string &  name,
const InterfaceID iid,
void **  ppSvc 
) const

std::string ServiceLocatorHelper::threadName (  )  const [private]

std::string ServiceLocatorHelper::threadedName ( const std::string &  name  )  const [private]

bool ServiceLocatorHelper::isInThread (  )  const [private]

ISvcLocator* ServiceLocatorHelper::serviceLocator (  )  const [inline, private]

Definition at line 48 of file ServiceLocatorHelper.h.

00048 { return &m_svcLoc; }

MsgStream& ServiceLocatorHelper::log (  )  const [inline, private]

Definition at line 49 of file ServiceLocatorHelper.h.

00049 { return m_msgLog; }

const std::string& ServiceLocatorHelper::requestorName (  )  const [inline, private]

Definition at line 50 of file ServiceLocatorHelper.h.

00050 { return m_requestorName; }


Member Data Documentation

ISvcLocator& ServiceLocatorHelper::m_svcLoc [private]

Definition at line 51 of file ServiceLocatorHelper.h.

MsgStream& ServiceLocatorHelper::m_msgLog [private]

Definition at line 52 of file ServiceLocatorHelper.h.

std::string ServiceLocatorHelper::m_requestorName [private]

Definition at line 53 of file ServiceLocatorHelper.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:57:14 2011 for GaudiKernel by doxygen 1.4.7