The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
IncidentAsyncTestAlg.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 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#pragma once
12
15#include <memory>
16
17class IIncidentSvc;
18class IncidentListener;
20
22public:
24
25 StatusCode initialize() override;
26 StatusCode execute() override;
27 StatusCode finalize() override;
28
29 bool isClonable() const override { return true; }
30
31 static std::string& incident();
32
33private:
34 Gaudi::Property<std::string> m_serviceName{ this, "ServiceName", "IncTestSvc" };
38 std::vector<std::unique_ptr<DataObjectHandle<DataObject>>> m_inputObjHandles;
39 std::vector<std::unique_ptr<DataObjectHandle<DataObject>>> m_outputObjHandles;
40};
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
Implementation of property with value of concrete type.
Definition PropertyFwd.h:27
The interface implemented by the IncidentSvc service.
StatusCode execute() override
static std::string & incident()
bool isClonable() const override
Gaudi::Property< std::vector< std::string > > m_outKeys
StatusCode initialize() override
SmartIF< IIncidentAsyncTestSvc > m_service
Gaudi::Property< std::string > m_serviceName
Gaudi::Property< std::vector< std::string > > m_inpKeys
StatusCode finalize() override
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_inputObjHandles
std::vector< std::unique_ptr< DataObjectHandle< DataObject > > > m_outputObjHandles
Small smart pointer class with automatic reference counting for IInterface.
Definition SmartIF.h:28
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64