All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
IStatSvc.h
Go to the documentation of this file.
1 // $Id: IStatSvc.h,v 1.1 2007/08/06 08:39:40 marcocle Exp $
2 // ============================================================================
3 #ifndef GAUDIKERNEL_ISTATSVC_H
4 #define GAUDIKERNEL_ISTATSVC_H 1
5 // ============================================================================
6 // Include files
7 // ============================================================================
8 // STD&STL
9 // ============================================================================
10 #include <string>
11 // ============================================================================
12 // GaudiKernel
13 // ============================================================================
14 #include "GaudiKernel/IInterface.h"
15 // ============================================================================
16 // forward declaration
17 // ============================================================================
18 class StatEntity ;
19 // ============================================================================
27 class GAUDI_API IStatSvc: virtual public IInterface
28 {
29 public:
33  typedef std::string StatTag ;
35  typedef double StatFlag ;
36 public:
42  virtual void stat ( const StatTag& t , const StatFlag& f ) = 0 ;
47  virtual void statPrint ( const StatTag& t ) = 0;
52  virtual const StatEntity* stat ( const StatTag& t ) const = 0 ;
53 protected:
54  // virtual and protected destructor
55  virtual ~IStatSvc( );
56 };
57 // ============================================================================
58 // The END
59 // ============================================================================
60 #endif // GAUDIKERNEL_ISTATSVC_H
61 // ============================================================================
double StatFlag
the actual value type used for Stat
Definition: IStatSvc.h:35
Definition of the basic interface.
Definition: IInterface.h:160
#define DeclareInterfaceID(name, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:23
"Stat"-related part of interface IChronoStatSvc
Definition: IStatSvc.h:27
The basic counter used for Monitoring purposes.
Definition: StatEntity.h:68
std::string StatTag
the actual identificator of Stat
Definition: IStatSvc.h:33
#define GAUDI_API
Definition: Kernel.h:108