Go to the documentation of this file.
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 "
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;
#define SeriousIOErrorInFunction(ios)
Report an IO error message using Foam::SeriousError.
streamFormat format() const
Return current stream format.
A class for handling words, derived from string.
readOption rOpt_
Read option.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
const word & wordToken() const
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds items read from Istream.
string note_
Optional note.
bool writeHeader(Ostream &) const
Write header.
word headerClassName_
Class name read from header.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const word & name() const
Return name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManipArg< error, int > exit(error &err, const int errNo=1)
versionNumber version() const
Return the stream version.
label lineNumber() const
Return current stream line number.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool readHeader(Istream &)
Read header.
#define IOWarningInFunction(ios)
Report an IO warning using Foam::Warning.
bool good() const
Return true if next operation might succeed.
objectState objState_
IOobject state.
virtual const fileName & name() const
Return the name of the stream.