40 const bool masterOnly =
57 ok = fp.readHeader(*
this, fName, Type::typeName);
58 if (ok && checkType && headerClassName_ != Type::typeName)
61 <<
"unexpected class name " << headerClassName_
62 <<
" expected " << Type::typeName
63 <<
" when reading " << fName <<
endl;
85 << Type::typeName <<
' ' <<
name()
86 <<
" constructed with IOobject::MUST_READ_IF_MODIFIED"
87 " but " << Type::typeName
88 <<
" does not support automatic rereading."
97 return typeHeaderOk<Type>(
true);
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
bool typeHeaderOk(const bool checkType)
Read header using typeGlobalFile to find file.
fileName filePath(const word &typeName, const bool global) const
Return complete path + object name if the file exists.
void warnNoRereading() const
Helper: warn that type does not support re-reading.
static fileCheckTypes fileModificationChecking
Type of file modification checking.
static void scatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Distribute without modification. Reverse of gather.
static bool master(const label communicator=0)
Am I the master process.
A class for handling file names.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
#define WarningInFunction
Report a warning using Foam::Warning.
const fileOperation & fileHandler()
Get current file handler.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
Trait for obtaining global write status.
Trait for obtaining global status.