Go to the documentation of this file.
16 "putBack is already full. \n";
63 return findTokenResume(w);
69 bool isFirstToken =
true;
71 while( !eof() && good() )
77 "error in reading stream " << name() <<
78 " at line number "<< lineNumber()<<
endl;
82 if( next.
isWord() && isFirstToken)
99 return findTokenResumeSilent(w,limitLine);
105 bool isFirstToken =
true;
107 while( !eof() && good() && lineNumber()<limitLine )
115 if( next.
isWord() && isFirstToken)
123 isFirstToken =
false;
133 bool checkEndStatement
150 if( checkEndStatement )
157 " expected ; but found " << next;
168 " token is not a word" << next <<
endl;
178 if( findTokenSilent(w, limitLine) )
214 const token delimiter(*
this);
222 <<
"' while reading " << funcName
223 <<
", found " << delimiter <<
endl;
233 const token delimiter(*
this);
241 <<
"' while reading " << funcName
252 const token delimiter(*
this);
260 <<
"' while reading " << funcName
271 const token delimiter(*
this);
279 <<
"' while reading " << funcName
290 const token delimiter(*
this);
298 <<
"' while reading " << funcName
299 <<
", found " << delimiter<<
endl;
305 return delimiter.
pToken();
311 const token delimiter(*
this);
320 <<
"' while reading " << funcName
321 <<
", found " << delimiter
322 <<
" at stream position " <<
endl;
328 return delimiter.
pToken();
335 const token delimiter(*
this);
341 " expected ; but found " << delimiter <<
endl;
347 return delimiter.
pToken();
354 check(
"iIstream::operator()");
358 return const_cast<iIstream&
>(*this);
bool readBegin(const char *funcName)
virtual bool findTokenAndNextSilent(const word &w, word &nextW, int32 limitLine=100)
punctuationToken pToken() const
@ END_BLOCK
End block [isseparator].
bool readEnd(const char *funcName)
char readEndStatement(const char *funcName)
iOstream & endl(iOstream &os)
Add newline and flush stream.
@ BEGIN_BLOCK
Begin block [isseparator].
virtual bool findTokenSilent(const word &w, int32 limitLine=100)
virtual bool findTokenResume(const word &w)
search for all tokesn after the current file position and find the first word token tbat matchs w
virtual bool findTokenResumeSilent(const word &w, int32 limitLine=100)
search for all tokesn after the current file position and find the first word token tbat matchs w
bool bad() const
Return true if stream is corrupted.
#define fatalErrorInFunction
char readBeginList(const char *funcName)
void putBack(const token &tok)
virtual bool findTokenAndNext(const word &w, word &nextW, bool checkEndStatement=true)
@ END_LIST
End list [isseparator].
iIstream & operator()() const
virtual const word & name() const
Return the name of the stream.
bool readBeginSquare(const char *funcName)
@ BEGIN_LIST
Begin list [isseparator].
@ BEGIN_SQR
Begin dimensions [isseparator].
char readEndList(const char *funcName)
#define ioErrorInFile(fileName, lineNumber)
int32 lineNumber() const
Const access to the current stream line number.
virtual bool findToken(const word &w)
bool isEndStatement() const
@ END_SQR
End dimensions [isseparator].
const word & wordToken() const
bool readEndSquare(const char *funcName)
bool peekBack(token &tok)