| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

AlgContextAuditor.h
Go to the documentation of this file.
1 #ifndef GAUDIAUD_ALGCONTEXTAUDITOR_H
2 #define GAUDIAUD_ALGCONTEXTAUDITOR_H
3 // ============================================================================
4 // Include files
5 // ============================================================================
6 // GaudiKernel
7 // ============================================================================
8 #include "GaudiKernel/Auditor.h"
9 #include "GaudiKernel/IAlgorithm.h"
10 // ============================================================================
11 // Forward declarations
12 // ============================================================================
13 class IAlgContextSvc;
14 // ============================================================================
21 class AlgContextAuditor : public Auditor
22 {
23 public:
24 // IAuditor implementation
25 void beforeInitialize( INamedInterface* a ) override;
26 void afterInitialize( INamedInterface* a ) override;
27 //
28 void beforeExecute( INamedInterface* a ) override;
29 void afterExecute( INamedInterface* a, const StatusCode& s ) override;
30 //
31 void beforeFinalize( INamedInterface* a ) override;
32 void afterFinalize( INamedInterface* a ) override;
33
34 public:
36 AlgContextAuditor( const std::string& name, ISvcLocator* pSvc );
37 ~AlgContextAuditor() override = default;
39 StatusCode initialize() override;
41 StatusCode finalize() override;
42
43 private:
45 AlgContextAuditor() = delete;
46 AlgContextAuditor( const AlgContextAuditor& ) = delete;
47 AlgContextAuditor& operator=( const AlgContextAuditor& ) = delete;
48
49 private:
51 SmartIF<IAlgContextSvc> m_svc;
52 };
53
54 // ============================================================================
55 // The END
56 // ============================================================================
57 #endif // GAUDIAUD_ALGCONTEXTAUDITOR_H
58 // ============================================================================
AlgContextAuditor::initialize
StatusCode initialize() override
standard initialization,
Definition: AlgContextAuditor.cpp:40
SmartIF< IAlgContextSvc >
AlgContextAuditor::~AlgContextAuditor
~AlgContextAuditor() override=default
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
AlgContextAuditor
Description: Register/Unregister the AlgContext of each algorithm before entering the algorithm and a...
Definition: AlgContextAuditor.h:21
AlgContextAuditor::afterFinalize
void afterFinalize(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:70
IAlgorithm.h
AlgContextAuditor::AlgContextAuditor
AlgContextAuditor()=delete
delete the default/copy constructor and assignment
AlgContextAuditor::m_svc
SmartIF< IAlgContextSvc > m_svc
the pointer to Algorithm Context Service
Definition: AlgContextAuditor.h:51
AlgContextAuditor::beforeInitialize
void beforeInitialize(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:64
AlgContextAuditor::afterInitialize
void afterInitialize(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:66
std::string
STL class.
AlgContextAuditor::operator=
AlgContextAuditor & operator=(const AlgContextAuditor &)=delete
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
AlgContextAuditor::finalize
StatusCode finalize() override
standard finalization,
Definition: AlgContextAuditor.cpp:57
INamedInterface
IInterface compliant class extending IInterface with the name() method.
Definition: INamedInterface.h:15
AlgContextAuditor::beforeFinalize
void beforeFinalize(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:68
AlgContextAuditor::afterExecute
void afterExecute(INamedInterface *a, const StatusCode &s) override
Definition: AlgContextAuditor.cpp:74
gaudirun.s
string s
Definition: gaudirun.py:253
IAlgContextSvc
An abstract interface for Algorithm Context Service.
Definition: IAlgContextSvc.h:23
AlgContextAuditor::beforeExecute
void beforeExecute(INamedInterface *a) override
Definition: AlgContextAuditor.cpp:72
Auditor.h
Auditor::name
const std::string & name() const override
Definition: Auditor.cpp:202
Auditor
Base class from which all concrete auditor classes should be derived.
Definition: Auditor.h:35