35 <<
"Attempt to put back onto bad stream"
41 <<
"Attempt to put back another token"
57 <<
"Attempt to get back from bad stream"
88 token delimiter(*
this);
94 <<
"' while reading " << funcName
95 <<
", found " << delimiter.
info()
105 token delimiter(*
this);
111 <<
"' while reading " << funcName
112 <<
", found " << delimiter.
info()
123 return readBegin(funcName);
129 token delimiter(*
this);
137 <<
"' while reading " << funcName
138 <<
", found " << delimiter.
info()
144 return delimiter.
pToken();
150 token delimiter(*
this);
158 <<
"' while reading " << funcName
159 <<
", found " << delimiter.
info()
165 return delimiter.
pToken();
173 check(
"Istream::operator()");
177 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(token &)
Peek at the put back token without removing it.
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)