47 <<
"bad object " <<
name()
53 if (instance().empty())
56 <<
"instance undefined for object " <<
name()
66 bool isGlobal =
false;
75 instance() != time().
system()
76 && instance() != time().caseSystem()
77 && instance() != time().constant()
78 && instance() != time().caseConstant()
92 Pout<<
"regIOobject::write() : " 93 <<
"writing (global) file " << objectPath();
97 Pout<<
"regIOobject::write() : " 98 <<
"writing (local) file " << objectPath();
110 regIOobject::fileModificationChecking == timeStampMaster
111 || regIOobject::fileModificationChecking == inotifyMaster
115 if (Pstream::master() || !masterOnly)
159 if (watchIndices_.size())
172 time().writeFormat(),
174 time().writeCompression(),
virtual void setUnmodified(const label) const
Set current state of file (using handle) to unmodified.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define SeriousErrorInFunction
Report an error message using Foam::SeriousError.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
streamFormat
Enumeration for the format of data in the stream.
const fileOperation & fileHandler()
Get current file handler.
compressionType
Enumeration for the format of data in the stream.
virtual bool writeObject(const regIOobject &, IOstream::streamFormat format=IOstream::ASCII, IOstream::versionNumber version=IOstream::currentVersion, IOstream::compressionType compression=IOstream::UNCOMPRESSED, const bool write=true) const
Writes a regIOobject (so header, contents and divider).
word name(const complex &)
Return a string representation of a complex.
const fileName & instance() const
static const versionNumber currentVersion
Current version number.
const Time & time() const
Return time.
prefixOSstream Pout(cout, "Pout")
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool write) const
Write using given format, version and compression.
virtual bool write(const bool write=true) const
Write using setting from DB.
int system(const std::string &command)
Execute the specified command.