Go to the documentation of this file.
58 <<
"Attempt to put back onto bad stream"
64 <<
"Attempt to put back another token"
80 <<
"Attempt to get back from bad stream"
111 const token delimiter(*
this);
118 <<
"' while reading " << funcName
119 <<
", found " << delimiter.
info() <<
nl
129 const token delimiter(*
this);
136 <<
"' while reading " << funcName
137 <<
", found " << delimiter.
info()
138 <<
" at stream position " <<
tellg(
this) <<
nl
148 const token delimiter(*
this);
156 <<
"' while reading " << funcName
157 <<
", found " << delimiter.
info()
163 return delimiter.
pToken();
169 const token delimiter(*
this);
177 <<
"' while reading " << funcName
178 <<
", found " << delimiter.
info()
179 <<
" at stream position " <<
tellg(
this) <<
nl
185 return delimiter.
pToken();
193 check(
"Istream::operator()");
197 return const_cast<Istream&
>(*this);
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
Generic input stream using a standard (STL) stream.
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
A token holds an item read from Istream.
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
static std::streampos tellg(Istream *isptr)
punctuationToken pToken() const
Return punctuation character.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void reset()
Reset token to UNDEFINED and clear any allocated storage.
bool bad() const
Return true if stream is corrupted.
Istream & operator()() const
Return a non-const reference to const Istream.
Begin block [isseparator].
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual std::istream & stdStream()
Access to underlying std::istream.
bool getBack(token &tok)
Get the put back token if there is one and return true.
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
void putBack(const token &tok)
Put back token.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Begin list [isseparator].
bool peekBack(token &tok)
Peek at the put back token without removing it.