The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
IAuditorSvc.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
13#include <Gaudi/IAuditor.h>
15#include <GaudiKernel/System.h>
16
17#include <optional>
18#include <string>
19
24class GAUDI_API IAuditorSvc : virtual public extend_interfaces<IService, Gaudi::IAuditor> {
25public:
28
30 virtual Gaudi::IAuditor* getAuditor( std::string const& name ) const = 0;
32 virtual bool hasAuditor( std::string const& name ) const = 0;
33
35 virtual StatusCode addAuditor( std::string const& name ) = 0;
36
38 virtual std::optional<StatusCode> removesAuditor( std::string const& name ) = 0;
39};
#define GAUDI_API
Definition Kernel.h:49
The IAuditor is the interface implemented by the Auditor base class.
Definition IAuditor.h:26
The interface implemented by the IAuditorSvc base class.
Definition IAuditorSvc.h:24
virtual Gaudi::IAuditor * getAuditor(std::string const &name) const =0
management functionality: retrieve an Auditor
DeclareInterfaceID(IAuditorSvc, 4, 0)
InterfaceID.
virtual bool hasAuditor(std::string const &name) const =0
management functionality: check if an Auditor exists
virtual StatusCode addAuditor(std::string const &name)=0
adds a new Auditor
virtual std::optional< StatusCode > removesAuditor(std::string const &name)=0
removes an Auditor. Returns whether the removal was successful if the Auditor was present
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
Base class to be used to extend an interface.