The Gaudi Framework  v33r0 (d5ea422b)
AppMgrRunable.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 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
StatusCode start() override
IService implementation: start the service.
Implementation of property with value of concrete type.
Definition: Property.h:370
Class definition of AppMgrRunable.
Definition: AppMgrRunable.h:38
StatusCode finalize() override
IService implementation: finalize the service.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
StatusCode run() override
IRunable implementation : Run the class implementation.
StatusCode stop() override
IService implementation: stop the service.
Application Manager User Interface.
Definition: IAppMgrUI.h:30
StatusCode initialize() override
IService implementation: initialize the service.
Base class used to extend a class implementing other interfaces.
Definition: extends.h:20
Gaudi::Property< int > m_evtMax
Definition: AppMgrRunable.h:42
IAppMgrUI * m_appMgrUI
Reference to application manager UI.
Definition: AppMgrRunable.h:41