42int Foam::sigWriteNow::signal_
74 is >> sigWriteNow::signal_;
80 os << sigWriteNow::signal_;
91void Foam::sigWriteNow::sigHandler(
int)
95 Info<<
"sigWriteNow :"
96 <<
" setting up write at end of the next iteration" <<
nl <<
endl;
151 Info<<
"sigWriteNow :"
152 <<
" Enabling writing upon signal " << signal_ <<
nl;
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
static Foam::Time const * runTimePtr_
static Foam::Time * runTimePtr_
File-local code for setting/resetting signal handlers.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void writeOnce()
Write the objects once (one shot) and continue the run.
static bool active()
Is active?
~sigWriteNow()
Destructor.
static int signalNumber()
The signal number being used.
sigWriteNow()
Construct null.
Abstract base class for registered object with I/O. Used in debug symbol registration.
bool set() const
Are all the vector set.
OBJstream os(runTime.globalPath()/outputName)
int optimisationSwitch(const char *name, const int deflt=0)
Lookup optimisation switch or add default value.
addwriteNowSignalToOpt addwriteNowSignalToOpt_("writeNowSignal")
static void setHandler(const char *what, int sigNum, void(*handler)(int))
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static void resetHandler(const char *what, int sigNum)
constexpr char nl
The newline '\n' character (0x0a)
virtual void readData(Foam::Istream &is)
Read.
virtual void writeData(Foam::Ostream &os) const
Write.
virtual ~addwriteNowSignalToOpt()=default
addwriteNowSignalToOpt(const addwriteNowSignalToOpt &)=delete
addwriteNowSignalToOpt(const char *name)
void operator=(const addwriteNowSignalToOpt &)=delete