Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GslErrorCount.h
Go to the documentation of this file.
1 #ifndef GAUDIGSL_GSLERRORCOUNT_H
2 #define GAUDIGSL_GSLERRORCOUNT_H 1
3 // Include files
4 // from STL
5 #include <map>
6 #include <string>
7 // from GaudiKernel
8 #include "GaudiKernel/AlgTool.h"
9 // from GaudiGSL
10 #include "GaudiGSL/GslError.h"
12 // forward declaration
13 
23 class GslErrorCount : public extends<AlgTool, IGslErrorHandler> {
24 public:
31  StatusCode handle( const GslError& error ) const override;
32 
38  StatusCode finalize() override;
39 
43 
44 private:
47  mutable Counters m_counters;
48 };
49 
50 // ============================================================================
51 // The END
52 // ============================================================================
53 #endif // GAUDIGSL_GSLERRORCOUNT_H
StatusCode handle(const GslError &error) const override
handle the GSL error
Helper class to represent GSL errors.
Definition: GslError.h:16
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
Concrete GSL error handler It is just counts number of GSL errors.
Definition: GslErrorCount.h:23
std::map< GslError, unsigned int > Counters
container of error counters
Definition: GslErrorCount.h:46
Counters m_counters
Definition: GslErrorCount.h:47
StatusCode finalize() override
standard finalization of Tool
CommonMessaging base_class