The Gaudi Framework  v33r1 (b1225454)
AlgContextAuditor.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 GAUDIAUD_ALGCONTEXTAUDITOR_H
12 #define GAUDIAUD_ALGCONTEXTAUDITOR_H
13 // ============================================================================
14 // Include files
15 // ============================================================================
16 // GaudiKernel
17 // ============================================================================
18 #include "GaudiKernel/Auditor.h"
19 #include "GaudiKernel/IAlgorithm.h"
20 // ============================================================================
21 // Forward declarations
22 // ============================================================================
23 class IAlgContextSvc;
24 // ============================================================================
31 class AlgContextAuditor : public Auditor {
32 public:
33  // IAuditor implementation
34  void beforeInitialize( INamedInterface* a ) override;
35  void afterInitialize( INamedInterface* a ) override;
36  //
37  void beforeExecute( INamedInterface* a ) override;
38  void afterExecute( INamedInterface* a, const StatusCode& s ) override;
39  //
40  void beforeFinalize( INamedInterface* a ) override;
41  void afterFinalize( INamedInterface* a ) override;
42 
43 public:
47  StatusCode initialize() override;
49  StatusCode finalize() override;
50 
51 private:
53  AlgContextAuditor() = delete;
54  AlgContextAuditor( const AlgContextAuditor& ) = delete;
55  AlgContextAuditor& operator=( const AlgContextAuditor& ) = delete;
56 
57 private:
60 };
61 
62 // ============================================================================
63 // The END
64 // ============================================================================
65 #endif // GAUDIAUD_ALGCONTEXTAUDITOR_H
StatusCode initialize() override
standard initialization,
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:35
Description: Register/Unregister the AlgContext of each algorithm before entering the algorithm and a...
void afterFinalize(INamedInterface *a) override
AlgContextAuditor()=delete
delete the default/copy constructor and assignment
SmartIF< IAlgContextSvc > m_svc
the pointer to Algorithm Context Service
void beforeInitialize(INamedInterface *a) override
void afterInitialize(INamedInterface *a) override
STL class.
AlgContextAuditor & operator=(const AlgContextAuditor &)=delete
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
StatusCode finalize() override
standard finalization,
IInterface compliant class extending IInterface with the name() method.
void beforeFinalize(INamedInterface *a) override
void afterExecute(INamedInterface *a, const StatusCode &s) override
const std::string & name() const override
Definition: Auditor.cpp:188
string s
Definition: gaudirun.py:328
An abstract interface for Algorithm Context Service.
void beforeExecute(INamedInterface *a) override
Base class from which all concrete auditor classes should be derived.
Definition: Auditor.h:44