The Gaudi Framework  master (37c0b60a)
AppMgrRunable.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDISVC_APPMGRRUNABLE_H
12 #define GAUDISVC_APPMGRRUNABLE_H 1
13 
14 // Framework includes
15 #include <GaudiKernel/IRunable.h>
16 #include <GaudiKernel/Service.h>
17 
18 // Forward declarations
19 class IAppMgrUI;
20 
38 class AppMgrRunable : public extends<Service, IRunable> {
39 protected:
41  IAppMgrUI* m_appMgrUI = nullptr;
42  Gaudi::Property<int> m_evtMax{ this, "EvtMax", 0xFEEDBABE, "number of events to be processed" };
43 
44 public:
46  using extends::extends;
47 
49  StatusCode initialize() override;
51  StatusCode start() override;
53  StatusCode stop() override;
55  StatusCode finalize() override;
57  StatusCode run() override;
58 };
59 #endif // GAUDISVC_APPMGRRUNABLE_H
AppMgrRunable::run
StatusCode run() override
IRunable implementation : Run the class implementation.
Definition: AppMgrRunable.cpp:58
AppMgrRunable::finalize
StatusCode finalize() override
IService implementation: finalize the service.
Definition: AppMgrRunable.cpp:50
AppMgrRunable::stop
StatusCode stop() override
IService implementation: stop the service.
Definition: AppMgrRunable.cpp:44
AppMgrRunable::initialize
StatusCode initialize() override
IService implementation: initialize the service.
Definition: AppMgrRunable.cpp:24
AppMgrRunable::m_evtMax
Gaudi::Property< int > m_evtMax
Definition: AppMgrRunable.h:42
AppMgrRunable::start
StatusCode start() override
IService implementation: start the service.
Definition: AppMgrRunable.cpp:38
StatusCode
Definition: StatusCode.h:65
AppMgrRunable::m_appMgrUI
IAppMgrUI * m_appMgrUI
Reference to application manager UI.
Definition: AppMgrRunable.h:41
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:20
AppMgrRunable
Class definition of AppMgrRunable.
Definition: AppMgrRunable.h:38
Service.h
IAppMgrUI
Definition: IAppMgrUI.h:34
IRunable.h
Gaudi::Property< int >