35 Info<<
"IOobject::readHeader(Istream&) : reading header for file " 45 <<
" stream not open for reading essential object from file " 53 <<
" stream not open for reading from file " 73 headerClassName_ =
word(headerDict.
lookup(
"class"));
75 const word headerObject(headerDict.
lookup(
"object"));
76 if (IOobject::debug && headerObject !=
name())
79 <<
" object renamed from " 80 <<
name() <<
" to " << headerObject
81 <<
" for file " << is.
name() <<
endl;
90 <<
"First token could not be read or is not the keyword 'FoamFile'" 91 <<
nl <<
nl <<
"Check header is of the form:" <<
nl <<
endl;
108 <<
" stream failure while reading header" 110 <<
" of file " << is.
name()
111 <<
" for essential object" <<
name()
117 Info<<
"IOobject::readHeader(Istream&) :" 118 <<
" stream failure while reading header" 120 <<
" of file " << is.
name() <<
endl;
versionNumber version() const
Return the stream version.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A class for handling words, derived from string.
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
#define IOWarningIn(functionName, ios)
Report an IO warning using Foam::Warning.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define SeriousIOErrorIn(functionName, ios)
Report an IO error message using Foam::SeriousError.
bool good() const
Return true if next operation might succeed.
streamFormat format() const
Return current stream format.
A token holds items read from Istream.
label lineNumber() const
Return current stream line number.
const word & name() const
Return name.
virtual const fileName & name() const
Return the name of the stream.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
bool writeHeader(Ostream &) const
Write header.
bool readHeader(Istream &)
Read header.
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.