38 const bool writeOnProc
52 <<
"instance undefined for object " <<
name() <<
endl;
60 bool isGlobal =
false;
86 Pout<<
"regIOobject::write() : " 91 Pout<<
"regIOobject::write() : " 110 osGood =
fileHandler().writeObject(*
this, streamOpt, writeOnProc);
125 if (!watchIndices_.
empty())
const word & name() const noexcept
Return the object name.
bool empty() const noexcept
True if List is empty (ie, size() is zero)
Ostream & endl(Ostream &os)
Add newline and flush stream.
refPtr< fileOperation > fileHandler(std::nullptr_t)
Delete current file handler - forwards to fileOperation::handler()
A simple container for options an IOstream can normally have.
bool good() const noexcept
Did last readHeader() succeed?
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using stream options.
fileName objectPath() const
The complete path + object name.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
virtual bool write(const bool writeOnProc=true) const
Write using setting from DB.
const Time & time() const noexcept
Return Time associated with the objectRegistry.
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.
int debug
Static debugging option.
static fileCheckTypes fileModificationChecking
Type of file modification checking.
const fileName & instance() const noexcept
Read access to instance path component.
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
T & back()
Access last element of the list, position [size()-1].
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.