Go to the documentation of this file.
51 IOobject::fileModificationChecking == timeStampMaster
52 || IOobject::fileModificationChecking == inotifyMaster
58 if (!masterOnly || Pstream::master())
62 ok = fp.
readHeader(*
this, fName, Type::typeName);
63 if (ok && checkType && headerClassName_ != Type::typeName)
68 <<
"unexpected class name " << headerClassName_
69 <<
" expected " << Type::typeName
70 <<
" when reading " << fName <<
endl;
93 << Type::typeName <<
' ' <<
name()
94 <<
" constructed with IOobject::MUST_READ_IF_MODIFIED but "
95 << Type::typeName <<
" does not support automatic rereading."
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
const word & name() const
Return name.
An encapsulation of filesystem-related operations.
A class for handling file names.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
const fileOperation & fileHandler()
Get current file handler.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool readHeader(IOobject &, const fileName &, const word &typeName) const =0
Read object header from supplied file.
void warnNoRereading() const
Helper: warn that type does not support re-reading.
readOption readOpt() const
The read option.
fileName search(const word &file, const fileName &directory)
Recursively search the given directory for the file.
#define WarningInFunction
Report a warning using Foam::Warning.