Go to the documentation of this file.
49 <<
"bad object " <<
name()
55 if (instance().empty())
58 <<
"instance undefined for object " <<
name()
68 bool isGlobal =
false;
77 instance() != time().
system()
78 && instance() != time().caseSystem()
80 && instance() != time().caseConstant()
94 Pout<<
"regIOobject::write() : "
95 <<
"writing (global) file " << objectPath();
99 Pout<<
"regIOobject::write() : "
100 <<
"writing (local) file " << objectPath();
112 regIOobject::fileModificationChecking == timeStampMaster
113 || regIOobject::fileModificationChecking == inotifyMaster
117 if (Pstream::master() || !masterOnly)
161 if (watchIndices_.size())
174 time().writeFormat(),
176 time().writeCompression(),
int debug
Static debugging option.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool valid) const
Write using given format, version and compression.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
const fileName & instance() const
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
static const versionNumber currentVersion
The current version number.
const fileOperation & fileHandler()
Get current file handler.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
An Ostream wrapper for parallel output to std::cout.
const Time & time() const
Return time.
Representation of a major/minor version number.
virtual bool write(const bool valid=true) const
Write using setting from DB.
word name(const complex &c)
Return string representation of complex.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
streamFormat
Data format (ascii | binary)
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...
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
constant condensation/saturation model.
virtual bool writeObject(const regIOobject &, IOstream::streamFormat format=IOstream::ASCII, IOstream::versionNumber version=IOstream::currentVersion, IOstream::compressionType compression=IOstream::UNCOMPRESSED, const bool valid=true) const
Writes a regIOobject (so header, contents and divider).