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()
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);
Istream & readBegin(const char *funcName)
bool peekBack(token &)
Peek at the put back token without removing it.
Istream & operator()() const
Return a non-const reference to const Istream.
punctuationToken pToken() const
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool bad() const
Return true if stream is corrupted.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
char readEndList(const char *funcName)
InfoProxy< token > info() const
Return info proxy.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
void putBack(const token &)
Put back token.
bool good() const
Return true if next operation might succeed.
void setBad()
Set stream to be bad.
Istream & readEnd(const char *funcName)
Istream & readEndBegin(const char *funcName)
static token undefinedToken
Static undefined token.
char readBeginList(const char *funcName)
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool getBack(token &)
Get the put back token if there is one and return true.