45 return readAndCheckHeader
62 ? this->globalFilePath(Type::typeName,
search)
63 : this->localFilePath(Type::typeName,
search)
74 << Type::typeName <<
' ' <<
name()
75 <<
" constructed with READ_MODIFIED but " 76 << Type::typeName <<
" does not support automatic rereading." A class for handling file names.
Trait for specifying global vs. local IOobject file types.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileName typeFilePath(const bool search=true) const
Call localFilePath or globalFilePath for given type depending on its is_globalIOobject trait...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (respects is_globalIOobject trait) and check its info.
#define WarningInFunction
Report a warning using Foam::Warning.
fileName search(const word &file, const fileName &directory)
Recursively search the given directory for the file.
void warnNoRereading() const
Helper: warn that type does not support re-reading.