| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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"
11 #include "GaudiGSL/IGslErrorHandler.h"
12 // forward declaration
13
23 class GslErrorCount : public extends<AlgTool, IGslErrorHandler>
24 {
25 public:
32 StatusCode handle( const GslError& error ) const override;
33
39 StatusCode finalize() override;
40
43 using base_class::base_class;
44
45 private:
47 typedef std::map<GslError, unsigned int> Counters;
48 mutable Counters m_counters;
49 };
50
51 // ============================================================================
52 // The END
53 // ============================================================================
54 #endif // GAUDIGSL_GSLERRORCOUNT_H
55 // ============================================================================
GslErrorCount::handle
StatusCode handle(const GslError &error) const override
handle the GSL error
Definition: GslErrorCount.cpp:56
GslError
Helper class to represent GSL errors.
Definition: GslError.h:16
AlgTool.h
IGslErrorHandler.h
std::map< GslError, unsigned int >
CommonMessagingBase::error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Definition: CommonMessaging.h:111
GslError.h
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
GslErrorCount
Concrete GSL error handler It is just counts number of GSL errors.
Definition: GslErrorCount.h:23
GslErrorCount::Counters
std::map< GslError, unsigned int > Counters
container of error counters
Definition: GslErrorCount.h:47
GslErrorCount::m_counters
Counters m_counters
Definition: GslErrorCount.h:48
GslErrorCount::finalize
StatusCode finalize() override
standard finalization of Tool
Definition: GslErrorCount.cpp:28
CommonMessaging::base_class
CommonMessaging base_class
Definition: CommonMessaging.h:162