The Gaudi Framework
master (57817a18)
Toggle main menu visibility
Loading...
Searching...
No Matches
IAuditor.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2026 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
13
#include <
GaudiKernel/EventContext.h
>
14
#include <
GaudiKernel/INamedInterface.h
>
15
#include <
GaudiKernel/StatusCode.h
>
16
17
#include <string>
18
19
namespace
Gaudi
{
20
26
class
GAUDI_API
IAuditor
:
virtual
public
INamedInterface
{
27
public
:
28
DeclareInterfaceID
(
IAuditor
, 1, 0 );
29
31
virtual
void
before
( std::string
const
& event, std::string
const
& caller,
EventContext
const
& ) = 0;
32
34
virtual
void
after
( std::string
const
& event, std::string
const
& caller,
EventContext
const
&,
35
StatusCode
const
& sc =
StatusCode::SUCCESS
) = 0;
36
38
virtual
bool
isEnabled
()
const
= 0;
39
41
virtual
StatusCode
sysInitialize
() = 0;
42
44
virtual
StatusCode
sysFinalize
() = 0;
45
46
// Defining a set of standard events used internally by the framework
47
static
const
std::string
Initialize
;
48
static
const
std::string
ReInitialize
;
49
static
const
std::string
Start
;
50
static
const
std::string
ReStart
;
51
static
const
std::string
Execute
;
52
static
const
std::string
Stop
;
53
static
const
std::string
Finalize
;
54
// Suspension is not a standard event, but it is used by the AsynchronousAlgorithm to audit suspension of execution
55
static
const
std::string
Suspension
;
56
};
57
58
}
// namespace Gaudi
EventContext.h
INamedInterface.h
GAUDI_API
#define GAUDI_API
Definition
Kernel.h:49
StatusCode.h
EventContext
This class represents an entry point to all the event specific data.
Definition
EventContext.h:35
Gaudi::IAuditor
The IAuditor is the interface implemented by the Auditor base class.
Definition
IAuditor.h:26
Gaudi::IAuditor::Stop
static const std::string Stop
Definition
IAuditor.h:52
Gaudi::IAuditor::after
virtual void after(std::string const &event, std::string const &caller, EventContext const &, StatusCode const &sc=StatusCode::SUCCESS)=0
Audit the end of a given "event" for a given caller.
Gaudi::IAuditor::Suspension
static const std::string Suspension
Definition
IAuditor.h:55
Gaudi::IAuditor::sysInitialize
virtual StatusCode sysInitialize()=0
Used by AuditorSvc.
Gaudi::IAuditor::sysFinalize
virtual StatusCode sysFinalize()=0
Used by AuditorSvc.
Gaudi::IAuditor::Initialize
static const std::string Initialize
Definition
IAuditor.h:47
Gaudi::IAuditor::isEnabled
virtual bool isEnabled() const =0
Tell if the auditor is enabled or not.
Gaudi::IAuditor::DeclareInterfaceID
DeclareInterfaceID(IAuditor, 1, 0)
Gaudi::IAuditor::before
virtual void before(std::string const &event, std::string const &caller, EventContext const &)=0
Audit the start of a given "event" for a given call.
Gaudi::IAuditor::Finalize
static const std::string Finalize
Definition
IAuditor.h:53
Gaudi::IAuditor::Execute
static const std::string Execute
Definition
IAuditor.h:51
Gaudi::IAuditor::Start
static const std::string Start
Definition
IAuditor.h:49
Gaudi::IAuditor::ReInitialize
static const std::string ReInitialize
Definition
IAuditor.h:48
Gaudi::IAuditor::ReStart
static const std::string ReStart
Definition
IAuditor.h:50
INamedInterface
IInterface compliant class extending IInterface with the name() method.
Definition
INamedInterface.h:23
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition
StatusCode.h:99
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition
__init__.py:1
GaudiKernel
include
Gaudi
IAuditor.h
Generated on
for The Gaudi Framework by
1.17.0