FloatingPointException.h
Go to the documentation of this file.
1 #ifndef _FloatingPointException_FloatingPointException_h_
2 #define _FloatingPointException_FloatingPointException_h_
3 
4 #include <fwk/VModule.h>
5 
6 namespace evt {
7  class Event;
8 }
9 
10 
11 namespace FloatingPointException {
12 
23 
24  public:
25  virtual ~FloatingPointException() = default;
26 
27  fwk::VModule::ResultFlag Init() override;
28  fwk::VModule::ResultFlag Run(evt::Event& event) override;
29  fwk::VModule::ResultFlag Finish() override { return eSuccess; }
30 
31  private:
32 #ifdef _GNU_SOURCE
33  unsigned int fExceptions = 0;
34 #endif
35  unsigned int fCounter = 0;
36 
37  REGISTER_MODULE("FloatingPointException", FloatingPointException);
38 
39  };
40 
41 }
42 
43 
44 #endif
Report success to RunController.
Definition: VModule.h:62
REGISTER_MODULE("FloatingPointException", FloatingPointException)
Module for switching the floating point exceptions on/off.
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.

, generated on Tue Sep 26 2023.