Signal handler to write once and continue. The interrupt is defined by OptimisationSwitches::writeNowSignal. More...
Public Member Functions | |
sigWriteNow () noexcept=default | |
Default construct. More... | |
sigWriteNow (Time &runTime, bool verbose=false) | |
Construct with Time reference. More... | |
~sigWriteNow () | |
Destructor. More... | |
Static Public Member Functions | |
static bool | active () noexcept |
Is active? More... | |
static int | signalNumber () noexcept |
The signal number being used. More... | |
static void | set (bool verbose=false) |
Set/reset signal handler. More... | |
Friends | |
class | addwriteNowSignalToOpt |
Allow setter access to signal_. More... | |
Signal handler to write once and continue. The interrupt is defined by OptimisationSwitches::writeNowSignal.
Definition at line 49 of file sigWriteNow.H.
|
defaultnoexcept |
Default construct.
|
explicit |
Construct with Time reference.
Definition at line 98 of file sigWriteNow.C.
References runTime, and runTimePtr_.
~sigWriteNow | ( | ) |
Destructor.
Definition at line 107 of file sigWriteNow.C.
References Foam::resetHandler().
|
inlinestaticnoexcept |
Is active?
Definition at line 99 of file sigWriteNow.H.
|
inlinestaticnoexcept |
The signal number being used.
Definition at line 104 of file sigWriteNow.H.
Referenced by sigStopAtWriteNow::set().
|
static |
Set/reset signal handler.
Definition at line 120 of file sigWriteNow.C.
References Foam::Info, Foam::nl, and Foam::setHandler().
Referenced by addwriteNowSignalToOpt::readData().
|
friend |
Allow setter access to signal_.
Definition at line 72 of file sigWriteNow.H.