35 <<
"Attempt to put back onto bad stream"
41 <<
"Attempt to put back another token"
65 <<
"Attempt to get back from bad stream"
74 lineNumber_ = putBackLineNumber_;
108 token delimiter(*
this);
114 <<
"' while reading " << funcName
115 <<
", found " << delimiter.
info()
125 token delimiter(*
this);
131 <<
"' while reading " << funcName
132 <<
", found " << delimiter.
info()
143 return readBegin(funcName);
149 token delimiter(*
this);
157 <<
"' while reading " << funcName
158 <<
", found " << delimiter.
info()
164 return delimiter.
pToken();
170 token delimiter(*
this);
178 <<
"' while reading " << funcName
179 <<
", found " << delimiter.
info()
185 return delimiter.
pToken();
193 check(
"Istream::operator()");
197 return const_cast<Istream&
>(*this);
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
bool bad() const
Return true if stream is corrupted.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Istream & readEnd(const char *funcName)
Istream & readBegin(const char *funcName)
Istream & operator()() const
Return a non-const reference to const Istream.
char readEndList(const char *funcName)
bool peekBack()
Peek at the put back token and return true if available.
char readBeginList(const char *funcName)
void putBack(const token &)
Put back token.
Istream & readEndBegin(const char *funcName)
bool getBack(token &)
Get the put back token if there is one and return true.
A token holds items read from Istream.
punctuationToken pToken() const
InfoProxy< token > info() const
Return info proxy.
static token undefinedToken
Static undefined token.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)