The Gaudi Framework  master (42b00024)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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>
14 #include <GaudiKernel/IService.h>
15 #include <GaudiKernel/System.h>
16 
17 #include <optional>
18 #include <string>
19 
24 class GAUDI_API IAuditorSvc : virtual public extend_interfaces<IService, Gaudi::IAuditor> {
25 public:
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 };
IService.h
IAuditorSvc::hasAuditor
virtual bool hasAuditor(std::string const &name) const =0
management functionality: check if an Auditor exists
System.h
Gaudi::IAuditor
The IAuditor is the interface implemented by the Auditor base class.
Definition: IAuditor.h:26
extend_interfaces
Base class to be used to extend an interface.
Definition: extend_interfaces.h:15
StatusCode
Definition: StatusCode.h:65
IAuditor.h
IAuditorSvc::addAuditor
virtual StatusCode addAuditor(std::string const &name)=0
adds a new Auditor
IAuditorSvc::removesAuditor
virtual std::optional< StatusCode > removesAuditor(std::string const &name)=0
removes an Auditor. Returns whether the removal was successful if the Auditor was present
IAuditorSvc::getAuditor
virtual Gaudi::IAuditor * getAuditor(std::string const &name) const =0
management functionality: retrieve an Auditor
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
IAuditorSvc
The interface implemented by the IAuditorSvc base class.
Definition: IAuditorSvc.h:24
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:84
IAuditorSvc::DeclareInterfaceID
DeclareInterfaceID(IAuditorSvc, 4, 0)
InterfaceID.