Public Member Functions | Static Public Member Functions | Friends | List of all members
sigWriteNow Class Reference

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

Public Member Functions

 sigWriteNow ()
 Construct null. More...
 
 sigWriteNow (Time &runTime, bool verbose=false)
 Construct from components. More...
 
 ~sigWriteNow ()
 Destructor. More...
 

Static Public Member Functions

static bool active ()
 Is active? More...
 
static int signalNumber ()
 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]

Construct null.

Definition at line 99 of file sigWriteNow.C.

◆ sigWriteNow() [2/2]

sigWriteNow ( Time runTime,
bool  verbose = false 
)

Construct from components.

Definition at line 103 of file sigWriteNow.C.

References runTime, and runTimePtr_.

◆ ~sigWriteNow()

Destructor.

Definition at line 112 of file sigWriteNow.C.

References Foam::resetHandler().

Here is the call graph for this function:

Member Function Documentation

◆ active()

bool active ( )
static

Is active?

Definition at line 125 of file sigWriteNow.C.

◆ signalNumber()

int signalNumber ( )
static

The signal number being used.

Definition at line 131 of file sigWriteNow.C.

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 137 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: