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

Comparing branches/new_design/OOPSE-4/src/io/SectionParserManager.hpp (file contents):
Revision 1789 by tim, Mon Nov 29 15:27:43 2004 UTC vs.
Revision 1840 by tim, Fri Dec 3 00:26:07 2004 UTC

# Line 36 | Line 36 | struct SectionParserContext {
36      int priority;
37      SectionParser* sectionParser;
38      int lineNo;
39 <    std::streamoff  offset;
39 >    std::streampos  offset;
40      bool isActive;
41   };
42  
43 + class SameSectionParserFunctor {
44 +    public:
45 +        SameSectionParserFunctor(const std::string section) : section_(section) {}
46 +
47 +        bool operator()(SectionParserContext context) {
48 +            return context.sectionParser->getSectionName() == section_;
49 +        }
50 +        
51 +    private:
52 +        std::string section_;
53 + };
54   /**
55   * @class SectionParserManager SectionParserManager.hpp "io/SectionParserManager.hpp"
56   * SectionParserManager maintains a priority list

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines