ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/io/SectionParserManager.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/io/SectionParserManager.cpp (file contents):
Revision 1840 by tim, Fri Dec 3 00:26:07 2004 UTC vs.
Revision 1841 by tim, Fri Dec 3 17:59:45 2004 UTC

# Line 87 | Line 87 | void SectionParserManager::parse(std::istream& input,
87      //invoke parser
88      for (i = sectionParsers_.begin(); i != sectionParsers_.end(); ++i) {
89          if (i->isActive) {
90 +            //C++ standard does not guarantee seekg  reset EOF, in that case, seekg will fail
91 +            //It is always a good idea to call clear() before seek
92 +            input.clear();            
93              input.seekg(i->offset);
94              (i->sectionParser)->parse(input, ff, i->lineNo);
95          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines