The Gaudi Framework  master (37c0b60a)
IncidentAsyncTestAlg.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 GAUDIEXAMPLES_INCIDENTASYNCTESTALG_H_
12 #define GAUDIEXAMPLES_INCIDENTASYNCTESTALG_H_
13 
14 #include <GaudiKernel/Algorithm.h>
16 #include <memory>
17 
18 class IIncidentSvc;
19 class IncidentListener;
21 
23 public:
25 
26  StatusCode initialize() override;
27  StatusCode execute() override;
28  StatusCode finalize() override;
29 
30  bool isClonable() const override { return true; }
31 
32  static std::string& incident();
33 
34 private:
35  Gaudi::Property<std::string> m_serviceName{ this, "ServiceName", "IncTestSvc" };
41 };
42 
43 #endif /*GAUDIEXAMPLES_INCIDENTREGISTRYTESTALG_H_*/
IncidentAsyncTestAlg::m_serviceName
Gaudi::Property< std::string > m_serviceName
Definition: IncidentAsyncTestAlg.h:35
IncidentAsyncTestAlg::m_inpKeys
Gaudi::Property< std::vector< std::string > > m_inpKeys
Definition: IncidentAsyncTestAlg.h:36
std::string
STL class.
IncidentAsyncTestAlg::m_inputObjHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputObjHandles
Definition: IncidentAsyncTestAlg.h:39
std::vector
STL class.
IncidentAsyncTestAlg::initialize
StatusCode initialize() override
Definition: IncidentAsyncTestAlg.cpp:24
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
IncidentAsyncTestAlg::finalize
StatusCode finalize() override
Definition: IncidentAsyncTestAlg.cpp:67
IncidentAsyncTestAlg::isClonable
bool isClonable() const override
Definition: IncidentAsyncTestAlg.h:30
IncidentAsyncTestAlg::m_service
SmartIF< IIncidentAsyncTestSvc > m_service
Definition: IncidentAsyncTestAlg.h:38
IncidentAsyncTestAlg::incident
static std::string & incident()
StatusCode
Definition: StatusCode.h:65
IncidentAsyncTestAlg
Definition: IncidentAsyncTestAlg.h:22
SmartIF< IIncidentAsyncTestSvc >
IncidentAsyncTestAlg::m_outputObjHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputObjHandles
Definition: IncidentAsyncTestAlg.h:40
IncidentAsyncTestAlg::execute
StatusCode execute() override
Definition: IncidentAsyncTestAlg.cpp:46
IncidentAsyncTestAlg::m_outKeys
Gaudi::Property< std::vector< std::string > > m_outKeys
Definition: IncidentAsyncTestAlg.h:37
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.h:101
IIncidentSvc
Definition: IIncidentSvc.h:33
IIncidentAsyncTestSvc
Definition: IIncidentAsyncTestSvc.h:21
DataObjectHandle.h
Gaudi::Property< std::string >