| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

ComponentManager.h
Go to the documentation of this file.
1 #ifndef COMPONENTMANAGER_H_
2 #define COMPONENTMANAGER_H_
3
4 #include "GaudiKernel/IComponentManager.h"
5 #include "GaudiKernel/CommonMessaging.h"
6
13 class GAUDI_API ComponentManager: public CommonMessaging<implements<IComponentManager> > {
14 public:
15
18 ComponentManager(IInterface *application, const InterfaceID &baseIID);
19
21 const InterfaceID& componentBaseInterface() const override;
22
26 StatusCode queryInterface(const InterfaceID& iid, void** pinterface) override;
27
28 SmartIF<ISvcLocator>& serviceLocator() const override {
29 if (!m_svcLocator) m_svcLocator = m_application;
30 return m_svcLocator;
31 }
32
34 StatusCode configure() override {return StatusCode::SUCCESS;}
35
37 StatusCode initialize() override {return StatusCode::SUCCESS;}
38
40 StatusCode start() override {return StatusCode::SUCCESS;}
41
43 StatusCode stop() override {return StatusCode::SUCCESS;}
44
46 StatusCode finalize() override {return StatusCode::SUCCESS;}
47
49 StatusCode terminate() override {return StatusCode::SUCCESS;}
50
51
53 StatusCode reinitialize() override {return StatusCode::SUCCESS;}
54
56 StatusCode restart() override {return StatusCode::SUCCESS;}
57
59 Gaudi::StateMachine::State FSMState() const override {return m_stateful->FSMState();}
60
63 Gaudi::StateMachine::State targetFSMState() const override {return m_stateful->targetFSMState();}
64
65 protected:
66
68 SmartIF<IInterface> m_application;
69
71 SmartIF<IStateful> m_stateful;
72
74 InterfaceID m_basicInterfaceId;
75
77 mutable SmartIF<ISvcLocator> m_svcLocator;
78
79 };
80
81
82 #endif /* COMPONENTMANAGER_H_ */
StatusCode::SUCCESS
Definition: StatusCode.h:30
SmartIF< ISvcLocator >
ComponentManager
Base class for a component manager.
Definition: ComponentManager.h:13
ComponentManager::m_svcLocator
SmartIF< ISvcLocator > m_svcLocator
Service locator (needed to access the MessageSvc)
Definition: ComponentManager.h:77
ComponentManager::targetFSMState
Gaudi::StateMachine::State targetFSMState() const override
When we are in the middle of a transition, get the state where the transition is leading us...
Definition: ComponentManager.h:63
ComponentManager::FSMState
Gaudi::StateMachine::State FSMState() const override
Get the current state.
Definition: ComponentManager.h:59
Gaudi::StateMachine::State
State
Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm, Service, AlgTool).
Definition: StateMachine.h:12
ComponentManager::m_stateful
SmartIF< IStateful > m_stateful
Pointer to the IStateful interface of the owner.
Definition: ComponentManager.h:71
ComponentManager::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Definition: ComponentManager.h:28
ComponentManager::finalize
StatusCode finalize() override
Finalize (from INITIALIZED to CONFIGURED).
Definition: ComponentManager.h:46
InterfaceID
Interface ID class.
Definition: IInterface.h:30
ComponentManager::reinitialize
StatusCode reinitialize() override
Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED).
Definition: ComponentManager.h:53
ComponentManager::m_basicInterfaceId
InterfaceID m_basicInterfaceId
Basic interface id of the managed components.
Definition: ComponentManager.h:74
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IInterface
Definition of the basic interface.
Definition: IInterface.h:234
ComponentManager::restart
StatusCode restart() override
Initialization (from RUNNING to RUNNING, via INITIALIZED).
Definition: ComponentManager.h:56
CommonMessaging.h
ComponentManager::m_application
SmartIF< IInterface > m_application
Pointer to the owner of the manager.
Definition: ComponentManager.h:68
ComponentManager::initialize
StatusCode initialize() override
Initialization (from CONFIGURED to INITIALIZED).
Definition: ComponentManager.h:37
ComponentManager::start
StatusCode start() override
Start (from INITIALIZED to RUNNING).
Definition: ComponentManager.h:40
IComponentManager.h
ComponentManager::configure
StatusCode configure() override
Configuration (from OFFLINE to CONFIGURED).
Definition: ComponentManager.h:34
CommonMessaging
Definition: CommonMessaging.h:55
queryInterface
StatusCode queryInterface(const InterfaceID &iid, void **pinterface) override
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
ComponentManager::stop
StatusCode stop() override
Stop (from RUNNING to INITIALIZED).
Definition: ComponentManager.h:43
ComponentManager::terminate
StatusCode terminate() override
Initialization (from CONFIGURED to OFFLINE).
Definition: ComponentManager.h:49