The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
IAuditor.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
16
17#include <string>
18
19namespace Gaudi {
20
26 class GAUDI_API IAuditor : virtual public INamedInterface {
27 public:
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
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 };
55
56} // namespace Gaudi
#define GAUDI_API
Definition Kernel.h:49
This class represents an entry point to all the event specific data.
The IAuditor is the interface implemented by the Auditor base class.
Definition IAuditor.h:26
static const std::string Stop
Definition IAuditor.h:52
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.
virtual StatusCode sysInitialize()=0
Used by AuditorSvc.
virtual StatusCode sysFinalize()=0
Used by AuditorSvc.
static const std::string Initialize
Definition IAuditor.h:47
virtual bool isEnabled() const =0
Tell if the auditor is enabled or not.
DeclareInterfaceID(IAuditor, 1, 0)
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.
static const std::string Finalize
Definition IAuditor.h:53
static const std::string Execute
Definition IAuditor.h:51
static const std::string Start
Definition IAuditor.h:49
static const std::string ReInitialize
Definition IAuditor.h:48
static const std::string ReStart
Definition IAuditor.h:50
IInterface compliant class extending IInterface with the name() method.
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
constexpr static const auto SUCCESS
Definition StatusCode.h:99
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1