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>
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. |
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.
void run | ( | ) | [inline] |
It executes the LemonWriter.