# | Line 40 | Line 40 | struct SectionParserContext { | |
---|---|---|
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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |