SectionReader Class Reference


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. #include <lemon/lemon_reader.h>

Inheritance diagram for SectionReader:

Inheritance graph
[legend]

List of all members.

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 ()


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]

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

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

The given section missing in the file.


Generated on Thu Jun 4 04:04:58 2009 for LEMON by  doxygen 1.5.9