44 <<
" stream not open for reading essential object from file " 52 <<
" stream not open for reading from file " 75 headerClassName_ =
word(headerDict.
lookup(
"class"));
77 const word headerObject(headerDict.
lookup(
"object"));
78 if (IOobject::debug && headerObject !=
name())
81 <<
" object renamed from " 82 <<
name() <<
" to " << headerObject
83 <<
" for file " << is.
name() <<
endl;
94 <<
"First token could not be read " 95 "or is not the keyword 'FoamFile'" 96 <<
nl <<
nl <<
"Check header is of the form:" <<
nl <<
endl;
114 <<
" stream failure while reading header" 116 <<
" of file " << is.
name()
117 <<
" for essential object" <<
name()
124 <<
"Stream failure while reading header" 126 <<
" 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.
#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.