#include <ServiceLocatorHelper.h>
Collaboration diagram for ServiceLocatorHelper:
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 |
ISvcLocator * | serviceLocator () const |
MsgStream & | log () const |
const std::string & | requestorName () const |
Private Attributes | |
ISvcLocator & | m_svcLoc |
MsgStream & | m_msgLog |
std::string | m_requestorName |
Definition at line 15 of file ServiceLocatorHelper.h.
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) {}
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] |
MsgStream& ServiceLocatorHelper::log | ( | ) | const [inline, private] |
const std::string& ServiceLocatorHelper::requestorName | ( | ) | const [inline, private] |
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.