The Gaudi Framework  master (37c0b60a)
CounterSvcAlg.cpp
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 // ============================================================================
12 // Include files
13 // ============================================================================
14 // GaudiKernel
15 // ============================================================================
16 #include <GaudiKernel/Algorithm.h>
17 
18 // ============================================================================
19 namespace GaudiTestSuite {
24  class CounterSvcAlg : public Algorithm {
25  public:
29  StatusCode execute() override { return StatusCode::SUCCESS; }
30  };
31 
32  DECLARE_COMPONENT( CounterSvcAlg )
33 
34 } // end of namespace GaudiTestSuite
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
StatusCode
Definition: StatusCode.h:65
GaudiTestSuite::CounterSvcAlg
Definition: CounterSvcAlg.cpp:24
GaudiTestSuite::CounterSvcAlg::execute
StatusCode execute() override
Event callback.
Definition: CounterSvcAlg.cpp:29
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginServiceV1.h:46
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.h:101
GaudiTestSuite
Definition: LoggingAuditor.cpp:22