33 return typeHeaderOk<IOobject>(
false);
50 <<
" stream not open for reading essential object from file " 58 <<
" stream not open for reading from file " 81 headerClassName_ =
word(headerDict.
lookup(
"class"));
83 const word headerObject(headerDict.
lookup(
"object"));
84 if (IOobject::debug && headerObject !=
name())
87 <<
" object renamed from " 88 <<
name() <<
" to " << headerObject
89 <<
" for file " << is.
name() <<
endl;
100 <<
"First token could not be read " 101 "or is not the keyword 'FoamFile'" 102 <<
nl <<
nl <<
"Check header is of the form:" <<
nl <<
endl;
120 <<
" stream failure while reading header" 122 <<
" of file " << is.
name()
123 <<
" for essential object" <<
name()
130 <<
"Stream failure while reading header" 132 <<
" of file " << is.
name() <<
endl;
#define SeriousIOErrorInFunction(ios)
Report an IO error message using Foam::SeriousError.
const word & name() const
Return name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
const word & wordToken() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
versionNumber version() const
Return the stream version.
label lineNumber() const
Return current stream line number.
bool good() const
Return true if next operation might succeed.
bool readHeader(Istream &)
Read header.
A class for handling words, derived from string.
virtual const fileName & name() const
Return the name of the stream.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
streamFormat format() const
Return current stream format.
static constexpr const char * foamFile
Keyword for the FoamFile header sub-dictionary.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
static const versionNumber currentVersion
Current version number.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool writeHeader(Ostream &) const
Write header.
bool headerOk()
Read header of local object without type-checking.
#define IOWarningInFunction(ios)
Report an IO warning using Foam::Warning.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
#define InfoInFunction
Report an information message using Foam::Info.