#include <lemon/lemon_reader.h>
Inherited by CommonSectionReaderBase, and ContentReader.
Inheritance diagram for LemonReader::SectionReader:
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.
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. |
|
Constructor for SectionReader. It attach this reader to the given LemonReader. |
|
It gives back true when the SectionReader can process the section with the given header line. Implemented in NodeSetReader, EdgeSetReader, UndirEdgeSetReader, NodeReader, EdgeReader, UndirEdgeReader, AttributeReader, ContentReader, NodeSetReader< Graph, ReaderTraits >, EdgeSetReader< Graph, ReaderTraits >, UndirEdgeSetReader< Graph, ReaderTraits >, NodeReader< Graph >, EdgeReader< Graph >, UndirEdgeReader< Graph >, and AttributeReader< ReaderTraits >. |
|
It reads the content of the section. Implemented in NodeSetReader, EdgeSetReader, UndirEdgeSetReader, NodeReader, EdgeReader, UndirEdgeReader, AttributeReader, ContentReader, NodeSetReader< Graph, ReaderTraits >, EdgeSetReader< Graph, ReaderTraits >, UndirEdgeSetReader< Graph, ReaderTraits >, NodeReader< Graph >, EdgeReader< Graph >, UndirEdgeReader< Graph >, and AttributeReader< ReaderTraits >. |