Go to the documentation of this file.
16 "putBack is already full. \n";
64 bool isFirstToken =
true;
66 while( !eof() && good() )
72 "error in reading stream " << name() <<
73 " at line number "<< lineNumber()<<
endl;
79 if( next.
isWord() && isFirstToken)
97 bool isFirstToken =
true;
99 while( !eof() && good() && lineNumber()<limitLine )
107 if( next.
isWord() && isFirstToken)
115 isFirstToken =
false;
125 bool checkEndStatement
142 if( checkEndStatement )
149 " expected ; but found " << next;
160 " token is not a word" << next <<
endl;
170 if( findTokenSilent(w, limitLine) )
206 const token delimiter(*
this);
214 <<
"' while reading " << funcName
215 <<
", found " << delimiter <<
endl;
225 const token delimiter(*
this);
233 <<
"' while reading " << funcName
244 const token delimiter(*
this);
252 <<
"' while reading " << funcName
263 const token delimiter(*
this);
271 <<
"' while reading " << funcName
282 const token delimiter(*
this);
290 <<
"' while reading " << funcName
291 <<
", found " << delimiter<<
endl;
297 return delimiter.
pToken();
303 const token delimiter(*
this);
312 <<
"' while reading " << funcName
313 <<
", found " << delimiter
314 <<
" at stream position " <<
endl;
320 return delimiter.
pToken();
327 const token delimiter(*
this);
333 " expected ; but found " << delimiter <<
endl;
339 return delimiter.
pToken();
346 check(
"iIstream::operator()");
350 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)
@ BEGIN_BLOCK
Begin block [isseparator].
virtual bool findTokenSilent(const word &w, int32 limitLine=100)
#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
bool readBeginSquare(const char *funcName)
@ BEGIN_LIST
Begin list [isseparator].
@ BEGIN_SQR
Begin dimensions [isseparator].
char readEndList(const char *funcName)
#define ioErrorInFile(fileName, lineNumber)
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)