The Gaudi Framework
v25r5
|
Base class for a component manager. More...
#include <GaudiKernel/ComponentManager.h>
Public Member Functions | |
ComponentManager (IInterface *application, const InterfaceID &baseIID) | |
Constructor. More... | |
virtual const InterfaceID & | componentBaseInterface () const |
Basic interface id of the managed components. More... | |
virtual | ~ComponentManager () |
Virtual destructor. More... | |
StatusCode | queryInterface (const InterfaceID &iid, void **pinterface) |
Specialized queryInterface implementation. More... | |
virtual SmartIF< ISvcLocator > & | serviceLocator () const |
Needed to locate the message service. More... | |
virtual StatusCode | configure () |
Configuration (from OFFLINE to CONFIGURED). More... | |
virtual StatusCode | initialize () |
Initialization (from CONFIGURED to INITIALIZED). More... | |
virtual StatusCode | start () |
Start (from INITIALIZED to RUNNING). More... | |
virtual StatusCode | stop () |
Stop (from RUNNING to INITIALIZED). More... | |
virtual StatusCode | finalize () |
Finalize (from INITIALIZED to CONFIGURED). More... | |
virtual StatusCode | terminate () |
Initialization (from CONFIGURED to OFFLINE). More... | |
virtual StatusCode | reinitialize () |
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED). More... | |
virtual StatusCode | restart () |
Initialization (from RUNNING to RUNNING, via INITIALIZED). More... | |
virtual Gaudi::StateMachine::State | FSMState () const |
Get the current state. More... | |
virtual Gaudi::StateMachine::State | targetFSMState () const |
When we are in the middle of a transition, get the state where the transition is leading us. More... | |
![]() | |
CommonMessaging (const A1 &a1, const A2 &a2, const A3 &a3) | |
Templated constructor with 3 arguments. More... | |
CommonMessaging (const A1 &a1, const A2 &a2) | |
Templated constructor with 2 arguments. More... | |
CommonMessaging (const A1 &a1) | |
Templated constructor with 1 argument. More... | |
CommonMessaging () | |
Default constructor. More... | |
virtual | ~CommonMessaging () |
Virtual destructor. More... | |
virtual const std::string & | name () const =0 |
This is needed to avoid ambiguous calls to name() More... | |
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... | |
MSG::Level | msgLevel () const |
get the output level from the embedded MsgStream More... | |
bool | msgLevel (MSG::Level lvl) const |
get the output level from the embedded MsgStream More... | |
![]() | |
virtual | ~extend_interfaces1 () |
Virtual destructor. More... | |
![]() | |
DeclareInterfaceID (IComponentManager, 1, 0) | |
InterfaceID. More... | |
virtual | ~IComponentManager () |
Virtual destructor. More... | |
![]() | |
DeclareInterfaceID (IStateful, 1, 0) | |
InterfaceID. More... | |
virtual | ~IStateful () |
![]() | |
virtual void * | i_cast (const InterfaceID &) const =0 |
main cast function More... | |
virtual std::vector< std::string > | getInterfaceNames () const =0 |
Returns a vector of strings containing the names of all the implemented interfaces. More... | |
virtual unsigned long | addRef ()=0 |
Increment the reference count of Interface instance. More... | |
virtual unsigned long | release ()=0 |
Release Interface instance. More... | |
virtual unsigned long | refCount () const =0 |
Current reference count. More... | |
virtual | ~IInterface () |
Virtual destructor. 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... | |
![]() | |
SmartIF< IMessageSvc > | m_msgsvc |
Pointer to the message service;. More... | |
std::auto_ptr< MsgStream > | m_msgStream |
The predefined message stream. More... | |
bool | m_streamWithService |
Flag to create a new MsgStream if it was created without the message service. More... | |
Additional Inherited Members | |
![]() | |
typedef CommonMessaging | base_class |
![]() | |
typedef implements1 | base_class |
Typedef to this class. More... | |
typedef extend_interfaces1 < IComponentManager > | extend_interfaces_base |
Typedef to the base of this class. More... | |
typedef extend_interfaces_base::ext_iids | interfaces |
MPL set of all the implemented interfaces. More... | |
![]() | |
typedef IComponentManager::iid::iids::type | ext_iids |
MPL set of interfaces extended by this one. More... | |
![]() | |
enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR } |
Return status. More... | |
typedef Gaudi::InterfaceId < IInterface, 0, 0 > | iid |
Interface ID. More... | |
typedef mpl::set1< iid > | ext_iids |
Extra interfaces. More... | |
![]() | |
static const InterfaceID & | interfaceID () |
Return an instance of InterfaceID identifying the interface. More... | |
![]() | |
void | updateMsgStreamOutputLevel (int level) |
Update the output level of the cached MsgStream. More... | |
Base class for a component manager.
Definition at line 14 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.
|
virtual |
|
virtual |
Basic interface id of the managed components.
Implements IComponentManager.
Definition at line 19 of file ComponentManager.cpp.
|
inlinevirtual |
Configuration (from OFFLINE to CONFIGURED).
Implements IStateful.
Definition at line 38 of file ComponentManager.h.
|
inlinevirtual |
Finalize (from INITIALIZED to CONFIGURED).
Implements IStateful.
Reimplemented in ServiceManager, and AlgorithmManager.
Definition at line 50 of file ComponentManager.h.
|
inlinevirtual |
Get the current state.
Implements IStateful.
Definition at line 63 of file ComponentManager.h.
|
inlinevirtual |
Initialization (from CONFIGURED to INITIALIZED).
Implements IStateful.
Reimplemented in ServiceManager, and AlgorithmManager.
Definition at line 41 of file ComponentManager.h.
|
virtual |
Specialized queryInterface implementation.
If an interface is not fount in the implemented ones, we fall back on the owner.
Implements IInterface.
Reimplemented in extends2< ComponentManager, ISvcManager, ISvcLocator >, and extends1< ComponentManager, IAlgManager >.
Definition at line 30 of file ComponentManager.cpp.
|
inlinevirtual |
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED).
Implements IStateful.
Reimplemented in ServiceManager, and AlgorithmManager.
Definition at line 57 of file ComponentManager.h.
|
inlinevirtual |
Initialization (from RUNNING to RUNNING, via INITIALIZED).
Implements IStateful.
Reimplemented in ServiceManager, and AlgorithmManager.
Definition at line 60 of file ComponentManager.h.
|
inlinevirtual |
Needed to locate the message service.
Implements CommonMessaging< implements1< IComponentManager > >.
Reimplemented in ServiceManager.
Definition at line 32 of file ComponentManager.h.
|
inlinevirtual |
Start (from INITIALIZED to RUNNING).
Implements IStateful.
Reimplemented in ServiceManager, and AlgorithmManager.
Definition at line 44 of file ComponentManager.h.
|
inlinevirtual |
Stop (from RUNNING to INITIALIZED).
Implements IStateful.
Reimplemented in ServiceManager, and AlgorithmManager.
Definition at line 47 of file ComponentManager.h.
|
inlinevirtual |
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().
Implements IStateful.
Definition at line 67 of file ComponentManager.h.
|
inlinevirtual |
Initialization (from CONFIGURED to OFFLINE).
Implements IStateful.
Definition at line 53 of file ComponentManager.h.
|
protected |
Pointer to the owner of the manager.
Definition at line 72 of file ComponentManager.h.
|
protected |
Basic interface id of the managed components.
Definition at line 78 of file ComponentManager.h.
Pointer to the IStateful interface of the owner.
Definition at line 75 of file ComponentManager.h.
|
mutableprotected |
Service locator (needed to access the MessageSvc)
Definition at line 81 of file ComponentManager.h.