The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
IStatSvc.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
14#include <string>
15
16class StatEntity;
17
25class GAUDI_API IStatSvc : virtual public IInterface {
26public:
30 typedef std::string StatTag;
32 typedef double StatFlag;
33
34public:
40 virtual void stat( const StatTag& t, const StatFlag& f ) = 0;
45 virtual void statPrint( const StatTag& t ) = 0;
50 virtual StatEntity* stat( const StatTag& t ) = 0;
51};
#define GAUDI_API
Definition Kernel.h:49
Definition of the basic interface.
Definition IInterface.h:225
"Stat"-related part of interface IChronoStatSvc
Definition IStatSvc.h:25
virtual StatEntity * stat(const StatTag &t)=0
extract the stat entity for the given tag (name)
DeclareInterfaceID(IStatSvc, 2, 0)
InterfaceID.
virtual void stat(const StatTag &t, const StatFlag &f)=0
add statistical information to the entity , tagged by its name
std::string StatTag
the actual identificator of Stat
Definition IStatSvc.h:30
double StatFlag
the actual value type used for Stat
Definition IStatSvc.h:32
virtual void statPrint(const StatTag &t)=0
prints (using message service) info about statistical entity, tagged by its name
backward compatible StatEntity class.
Definition StatEntity.h:23