11#include <framework/core/Module.h>
60 void event()
override;
This Modules kills basf2 as horribly as possible (or selected)
EMethod m_method
How to kill the event after parsing the string parameter.
void initialize() override
parse the method parameter
void event() override
kill if necessary
std::string m_methodStr
How to kill the event, one of (abort, terminate, quick_exit, exit, exception, signal,...
int m_event
Current event.
EMethod
All the defined methods to kill us ...
@ c_segfault
produce segfault
@ c_exception
raise std::runtime_error
@ c_terminate
call std::terminate
@ c_buserror
produce bus error
@ c_signal
raise signal(N)
@ c_quick_exit
call std::quick_exit
int m_eventToKill
In which event to kill the processing.
TheKillerModule()
Constructor: Sets the description, the properties and the parameters of the module.
unsigned int m_parameter
Optional parameter for the kill method: for quick_exit and exit it is the return code,...
Abstract base class for different kinds of events.