LemonReader Class Reference
[Input Output]
#include <lemon/lemon_reader.h>
List of all members.
Detailed Description
The Lemon Format contains several sections. We do not want to determine what sections are in a lemon file we give only a framework to read a section oriented format.
In the Lemon Format each section starts with a line contains a @
character on the first not white space position. This line is the header line of the section. Each next lines belong to this section while it does not starts with @
character. This line can start a new section or if it can close the file with the @end
line. The file format ignore the empty and comment lines. The line is comment line if it starts with a #
character.
The framework provides an abstract LemonReader::SectionReader class what defines the interface of a SectionReader. The SectionReader has the 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 and comment lines are filtered out.
Constructor & Destructor Documentation
|
Constructor for LemonReader which reads from the given stream. |
|
Constructor for LemonReader which reads from the given file. |
Member Function Documentation
The documentation for this class was generated from the following file:
Generated on Fri Feb 3 18:41:50 2006 for LEMON by
1.4.6