38 const bool writeOnProc
52 <<
"instance undefined for object " <<
name() <<
endl;
60 bool isGlobal =
false;
86 Pout<<
"regIOobject::write() : "
91 Pout<<
"regIOobject::write() : "
107 osGood =
fileHandler().writeObject(*
this, streamOpt, writeOnProc);
123 if (!watchIndices_.empty())
const Time & time() const noexcept
Return Time associated with the objectRegistry.
const word & name() const noexcept
Return the object name.
bool good() const noexcept
Did last readHeader() succeed?
static bool fileModificationChecking_masterOnly() noexcept
Test fileModificationChecking for master-only.
const fileName & instance() const noexcept
Read access to instance path component.
fileName objectPath() const
The complete path + object name.
A simple container for options an IOstream can normally have.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using stream options.
regIOobject(const IOobject &io, const bool isTimeObject=false)
Construct from IOobject. The optional flag adds special handling if the object is the top-level regIO...
virtual bool write(const bool writeOnProc=true) const
Write using setting from DB.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
Different types of constants.
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler().
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.