sigWriteNow Class Reference

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...
 

Detailed Description

Signal handler to write once and continue. The interrupt is defined by OptimisationSwitches::writeNowSignal.

Source files

Definition at line 49 of file sigWriteNow.H.

Constructor & Destructor Documentation

◆ sigWriteNow() [1/2]

sigWriteNow ( )
defaultnoexcept

Default construct.

◆ sigWriteNow() [2/2]

sigWriteNow ( Time runTime,
bool  verbose = false 
)
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().

Here is the call graph for this function:

Member Function Documentation

◆ active()

static bool active ( )
inlinestaticnoexcept

Is active?

Definition at line 99 of file sigWriteNow.H.

◆ signalNumber()

static int signalNumber ( )
inlinestaticnoexcept

The signal number being used.

Definition at line 104 of file sigWriteNow.H.

Referenced by sigStopAtWriteNow::set().

Here is the caller graph for this function:

◆ set()

void set ( bool  verbose = false)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ addwriteNowSignalToOpt

friend class addwriteNowSignalToOpt
friend

Allow setter access to signal_.

Definition at line 72 of file sigWriteNow.H.


The documentation for this class was generated from the following files: