1#ifndef __SIGNAL_HANDLING_HPP__
2#define __SIGNAL_HANDLING_HPP__
41 throw std::runtime_error(
"SignalHandler not initialized before use");
53 throw std::runtime_error(
"SignalHandler not initialized before use");
65 throw std::runtime_error(
"SignalHandler not initialized before use");
Manages POSIX signals for the application.
Definition signal_handling.hpp:18
SignalHandler()
Constructor for SignalHandler.
Definition signal_handling.cpp:10
static SignalHandler * instance
Singleton instance of the SignalHandler.
Definition signal_handling.hpp:99
static void handle_SIGINT(int signal) noexcept
Definition signal_handling.cpp:39
bool f_usr2_raised
Definition signal_handling.hpp:98
static bool is_sigint_raised() noexcept(false)
Definition signal_handling.hpp:61
static void handle_SIGUSR2(int signal) noexcept
Handles the SIGUSR2 signal.
Definition signal_handling.cpp:31
bool f_sigint_raised
Definition signal_handling.hpp:96
static void handle_SIGUSR1(int signal) noexcept
Handles the SIGUSR1 signal.
Definition signal_handling.cpp:23
static bool is_usr1_raised() noexcept(false)
Checks if the SIGUSR1 signal has been raised.
Definition signal_handling.hpp:37
static bool is_usr2_raised() noexcept(false)
Definition signal_handling.hpp:49
bool f_usr1_raised
Flag to indicate if the SIGUSR1 signal was triggered.
Definition signal_handling.hpp:97
Core component to perform simulation.
Definition data_exporter.hpp:18