Go to the documentation of this file.
49 if (instance().empty())
52 <<
"instance undefined for object " <<
name() <<
endl;
60 bool isGlobal =
false;
69 instance() != time().
system()
70 && instance() != time().caseSystem()
72 && instance() != time().caseConstant()
86 Pout<<
"regIOobject::write() : "
87 <<
"writing (global) file " << objectPath();
91 Pout<<
"regIOobject::write() : "
92 <<
"writing (local) file " << objectPath();
101 IOobject::fileModificationChecking == IOobject::timeStampMaster
102 || IOobject::fileModificationChecking == IOobject::inotifyMaster
106 if (Pstream::master() || !masterOnly)
123 if (watchIndices_.size())
int debug
Static debugging option.
const fileName & instance() const noexcept
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
const fileOperation & fileHandler()
Get current file handler.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
const Time & time() const
Return Time associated with the objectRegistry.
Representation of a major/minor version number.
virtual bool write(const bool valid=true) const
Write using setting from DB.
The IOstreamOption is a simple container for options an IOstream can normally have.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
virtual bool writeObject(const regIOobject &io, IOstreamOption streamOpt=IOstreamOption(), const bool valid=true) const
Writes a regIOobject (so header, contents and divider).
streamFormat
Data format (ascii | binary)
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write using stream options.
virtual void setUnmodified(const label) const
Set current state of file (using handle) to unmodified.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
constant condensation/saturation model.