header()
member function what get a header line string and decides if it want to process the next section. Several SectionReaders can be attached to an LemonReader and the first attached what can process the section will be used. Its read()
member will called with a stream contains the section. From this stream the empty lines and comments are filtered out. #include <lemon/lemon_reader.h>
Protected Member Functions | |
SectionReader (LemonReader &reader) | |
Constructor for SectionReader. | |
virtual bool | header (const std::string &line)=0 |
Gives back true when the SectionReader can process the section with the given header line. | |
virtual void | read (std::istream &is)=0 |
Reader function of the section. | |
virtual void | missing () |
SectionReader | ( | LemonReader & | reader | ) | [inline, protected] |
Constructor for SectionReader. It attach this reader to the given LemonReader.
virtual bool header | ( | const std::string & | line | ) | [protected, pure virtual] |
It gives back true when the SectionReader can process the section with the given header line.
Implemented in NodeSetReader< _Graph, _Traits >, BpNodeSetReader< _Graph, _Traits >, EdgeSetReader< _Graph, _Traits >, UEdgeSetReader< _Graph, _Traits >, NodeReader< _Graph >, EdgeReader< _Graph >, UEdgeReader< _Graph >, AttributeReader< _Traits >, NodeMapReader< _Graph, _Traits >, EdgeMapReader< _Graph, _Traits >, UEdgeMapReader< _Graph, _Traits >, ContentReader, LpReader, NodeSetReader< Graph, ReaderTraits >, BpNodeSetReader< Graph, ReaderTraits >, EdgeSetReader< Graph, ReaderTraits >, UEdgeSetReader< Graph, ReaderTraits >, NodeReader< Graph >, EdgeReader< Graph >, UEdgeReader< Graph >, and AttributeReader< ReaderTraits >.
virtual void read | ( | std::istream & | is | ) | [protected, pure virtual] |
It reads the content of the section.
Implemented in NodeSetReader< _Graph, _Traits >, BpNodeSetReader< _Graph, _Traits >, EdgeSetReader< _Graph, _Traits >, UEdgeSetReader< _Graph, _Traits >, NodeReader< _Graph >, EdgeReader< _Graph >, UEdgeReader< _Graph >, AttributeReader< _Traits >, NodeMapReader< _Graph, _Traits >, EdgeMapReader< _Graph, _Traits >, UEdgeMapReader< _Graph, _Traits >, ContentReader, LpReader, NodeSetReader< Graph, ReaderTraits >, BpNodeSetReader< Graph, ReaderTraits >, EdgeSetReader< Graph, ReaderTraits >, UEdgeSetReader< Graph, ReaderTraits >, NodeReader< Graph >, EdgeReader< Graph >, UEdgeReader< Graph >, and AttributeReader< ReaderTraits >.
virtual void missing | ( | ) | [inline, protected, virtual] |
The given section missing in the file.