LemonReader::SectionReader Class Reference

#include <lemon/lemon_reader.h>

Inherited by AttributeReader, AttributeReader< _ReaderTraits >, ContentReader, EdgeReader, EdgeSetReader, EdgeSetReader< _Graph, _ReaderTraits >, NodeReader, NodeSetReader, NodeSetReader< _Graph, _ReaderTraits >, UEdgeReader, UEdgeSetReader, and UEdgeSetReader< _Graph, _ReaderTraits >.

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.
virtual void missing ()
 The given section missing in the file.


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, UEdgeSetReader, NodeReader, EdgeReader, UEdgeReader, AttributeReader, ContentReader, NodeSetReader< _Graph, _ReaderTraits >, EdgeSetReader< _Graph, _ReaderTraits >, UEdgeSetReader< _Graph, _ReaderTraits >, and AttributeReader< _ReaderTraits >.

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

It reads the content of the section.

Implemented in NodeSetReader, EdgeSetReader, UEdgeSetReader, NodeReader, EdgeReader, UEdgeReader, AttributeReader, ContentReader, NodeSetReader< _Graph, _ReaderTraits >, EdgeSetReader< _Graph, _ReaderTraits >, UEdgeSetReader< _Graph, _ReaderTraits >, and AttributeReader< _ReaderTraits >.

virtual void missing (  )  [inline, protected, virtual]

The given section missing in the file.


The documentation for this class was generated from the following file:
Generated on Tue Oct 31 09:50:53 2006 for LEMON by  doxygen 1.5.1