The Gaudi Framework
v30r3 (a5ef0a68)
|
Base class for a component manager. More...
#include <GaudiKernel/ComponentManager.h>
Public Member Functions | |
ComponentManager (IInterface *application, const InterfaceID &baseIID) | |
Constructor. More... | |
const InterfaceID & | componentBaseInterface () const override |
Basic interface id of the managed components. More... | |
StatusCode | queryInterface (const InterfaceID &iid, void **pinterface) override |
Specialized queryInterface implementation. More... | |
SmartIF< ISvcLocator > & | serviceLocator () const override |
StatusCode | configure () override |
Configuration (from OFFLINE to CONFIGURED). More... | |
StatusCode | initialize () override |
Initialization (from CONFIGURED to INITIALIZED). More... | |
StatusCode | start () override |
Start (from INITIALIZED to RUNNING). More... | |
StatusCode | stop () override |
Stop (from RUNNING to INITIALIZED). More... | |
StatusCode | finalize () override |
Finalize (from INITIALIZED to CONFIGURED). More... | |
StatusCode | terminate () override |
Initialization (from CONFIGURED to OFFLINE). More... | |
StatusCode | reinitialize () override |
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED). More... | |
StatusCode | restart () override |
Initialization (from RUNNING to RUNNING, via INITIALIZED). More... | |
Gaudi::StateMachine::State | FSMState () const override |
Get the current state. More... | |
Gaudi::StateMachine::State | targetFSMState () const override |
When we are in the middle of a transition, get the state where the transition is leading us. More... | |
Public Member Functions inherited from CommonMessaging< implements< IComponentManager > > | |
MSG::Level | msgLevel () const |
get the cached level (originally extracted from the embedded MsgStream) More... | |
bool | msgLevel (MSG::Level lvl) const |
get the output level from the embedded MsgStream More... | |
MSG::Level | outputLevel () const |
Backward compatibility function for getting the output level. More... | |
Public Member Functions inherited from CommonMessagingBase | |
virtual | ~CommonMessagingBase ()=default |
Virtual destructor. More... | |
const SmartIF< IMessageSvc > & | msgSvc () const |
The standard message service. More... | |
MsgStream & | msgStream () const |
Return an uninitialized MsgStream. More... | |
MsgStream & | msgStream (const MSG::Level level) const |
Predefined configurable message stream for the efficient printouts. More... | |
MsgStream & | always () const |
shortcut for the method msgStream(MSG::ALWAYS) More... | |
MsgStream & | fatal () const |
shortcut for the method msgStream(MSG::FATAL) More... | |
MsgStream & | err () const |
shortcut for the method msgStream(MSG::ERROR) More... | |
MsgStream & | error () const |
shortcut for the method msgStream(MSG::ERROR) More... | |
MsgStream & | warning () const |
shortcut for the method msgStream(MSG::WARNING) More... | |
MsgStream & | info () const |
shortcut for the method msgStream(MSG::INFO) More... | |
MsgStream & | debug () const |
shortcut for the method msgStream(MSG::DEBUG) More... | |
MsgStream & | verbose () const |
shortcut for the method msgStream(MSG::VERBOSE) More... | |
MsgStream & | msg () const |
shortcut for the method msgStream(MSG::INFO) More... | |
Protected Attributes | |
SmartIF< IInterface > | m_application |
Pointer to the owner of the manager. More... | |
SmartIF< IStateful > | m_stateful |
Pointer to the IStateful interface of the owner. More... | |
InterfaceID | m_basicInterfaceId |
Basic interface id of the managed components. More... | |
SmartIF< ISvcLocator > | m_svcLocator |
Service locator (needed to access the MessageSvc) More... | |
friend | ApplicationMgr |
Additional Inherited Members | |
Public Types inherited from CommonMessaging< implements< IComponentManager > > | |
using | base_class = CommonMessaging |
Protected Member Functions inherited from CommonMessaging< implements< IComponentManager > > | |
MSG::Level | setUpMessaging () const |
Set up local caches. More... | |
MSG::Level | resetMessaging () |
Reinitialize internal states. More... | |
void | updateMsgStreamOutputLevel (int level) |
Update the output level of the cached MsgStream. More... | |
Base class for a component manager.
Definition at line 15 of file ComponentManager.h.
ComponentManager::ComponentManager | ( | IInterface * | application, |
const InterfaceID & | baseIID | ||
) |
Constructor.
application | the manager of managers |
Definition at line 12 of file ComponentManager.cpp.
|
override |
Basic interface id of the managed components.
Definition at line 19 of file ComponentManager.cpp.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
Get the current state.
Definition at line 61 of file ComponentManager.h.
|
inlineoverride |
|
override |
Specialized queryInterface implementation.
If an interface is not fount in the implemented ones, we fall back on the owner.
Definition at line 23 of file ComponentManager.cpp.
|
inlineoverride |
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED).
Definition at line 55 of file ComponentManager.h.
|
inlineoverride |
Initialization (from RUNNING to RUNNING, via INITIALIZED).
Definition at line 58 of file ComponentManager.h.
|
inlineoverride |
Definition at line 30 of file ComponentManager.h.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
When we are in the middle of a transition, get the state where the transition is leading us.
Otherwise it returns the same state as state().
Definition at line 65 of file ComponentManager.h.
|
inlineoverride |
|
protected |
Definition at line 80 of file ComponentManager.h.
|
protected |
Pointer to the owner of the manager.
Definition at line 69 of file ComponentManager.h.
|
protected |
Basic interface id of the managed components.
Definition at line 75 of file ComponentManager.h.
Pointer to the IStateful interface of the owner.
Definition at line 72 of file ComponentManager.h.
|
mutableprotected |
Service locator (needed to access the MessageSvc)
Definition at line 78 of file ComponentManager.h.