Go to the documentation of this file.
35 <<
"Attempt to put back onto bad stream"
41 <<
"Attempt to put back another token"
57 <<
"Attempt to get back from bad stream"
90 token delimiter(*
this);
96 <<
"' while reading " << funcName
97 <<
", found " << delimiter.
info()
107 token delimiter(*
this);
113 <<
"' while reading " << funcName
114 <<
", found " << delimiter.
info()
125 return readBegin(funcName);
133 token delimiter(*
this);
141 <<
"' while reading " << funcName
142 <<
", found " << delimiter.
info()
148 return delimiter.
pToken();
154 token delimiter(*
this);
162 <<
"' while reading " << funcName
163 <<
", found " << delimiter.
info()
169 return delimiter.
pToken();
177 check(
"Istream::operator()");
181 return const_cast<Istream&
>(*this);
Istream & readEnd(const char *funcName)
char readBeginList(const char *funcName)
char readEndList(const char *funcName)
A token holds items read from Istream.
InfoProxy< token > info() const
Return info proxy.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool peekBack(token &)
Peek at the put back token without removing it.
token putBackToken_
The last token put back on the stream.
punctuationToken pToken() const
bool bad() const
Return true if stream is corrupted.
Istream & operator()() const
Return a non-const reference to const Istream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
static token undefinedToken
Static undefined token.
void putBack(const token &)
Put back token.
Istream & readEndBegin(const char *funcName)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool putBack_
Has a token been put back on the stream?
Istream & readBegin(const char *funcName)
bool getBack(token &)
Get the put back token if there is one and return true.