LemonWriter Class Reference
[Lemon Input-Output]


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 write 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 lines and it may contain comments started with a # character to the end of the line.

The framework provides an abstract LemonWriter::SectionWriter class what defines the interface of a SectionWriter. The SectionWriter has the header() member function what gives back the header of the section. After that it will be called the write() member which should write the content of the section. #include <lemon/lemon_writer.h>

List of all members.

Classes

class  SectionWriter
 Abstract base class for writing a section. More...

Public Member Functions

 LemonWriter (std::ostream &_os)
 Constructor for LemonWriter.
 LemonWriter (const std::string &filename)
 Constructor for LemonWriter.
 ~LemonWriter ()
void run ()
 Executes the LemonWriter.


Constructor & Destructor Documentation

LemonWriter ( std::ostream &  _os  )  [inline]

Constructor for LemonWriter which writes to the given stream.

LemonWriter ( const std::string &  filename  )  [inline]

Constructor for LemonWriter which writes to the given file.

~LemonWriter (  )  [inline]

Desctructor for LemonWriter.


Member Function Documentation

void run (  )  [inline]

It executes the LemonWriter.


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