Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

LemonReader::SectionReader Class Reference

#include <lemon/lemon_reader.h>

Inherited by CommonSectionReaderBase, and ContentReader.

Inheritance diagram for LemonReader::SectionReader:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class has an 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 & Destructor Documentation

SectionReader LemonReader reader  )  [inline, protected]
 

Constructor for SectionReader. It attach this reader to the given LemonReader.


Member Function Documentation

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, 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 >.

virtual void read std::istream is  )  [protected, pure virtual]
 

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 >.


The documentation for this class was generated from the following file:
Generated on Sat Aug 27 14:15:39 2005 for LEMON by  doxygen 1.4.4