libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
Derive from this to assist with signal handling in one's executable. More...
#include <application.hpp>
Public Types | |
using | element_type = std::sig_atomic_t |
Public Member Functions | |
element_type | signal_status () const noexcept(true) |
Detect if a signal has been sent to the application. More... | |
Protected Member Functions | |
application () noexcept(true) | |
application (application const &)=delete | |
virtual | ~application ()=default |
Derive from this to assist with signal handling in one's executable.
Definition at line 50 of file application.hpp.
using jmmcg::LIBJMMCG_VER_NAMESPACE::application::element_type = std::sig_atomic_t |
Definition at line 52 of file application.hpp.
|
inlineprotectednoexcept |
By default SIGINT & SIGQUIT are trapped.
Definition at line 27 of file application_impl.hpp.
Referenced by isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::v5_0sp2::fix_client::fix_client().
|
protecteddelete |
|
protectedvirtualdefault |
|
inlinenoexcept |
Detect if a signal has been sent to the application.
For example in a loop one may test this to check if CTRL-C has been pressed and exit the loop thus permitting C++ dtors to run.
Definition at line 22 of file application_impl.hpp.
Referenced by main().