#include <lemon/lemon_writer.h>
Inherits LemonWriter::SectionWriter.
Inheritance diagram for EdgeWriter:
@edges
edges_name
, but the edges_name
may be empty.Each line in the section contains the name of the edge and then the edge label.
Public Member Functions | |
template<typename _LabelWriter> | |
EdgeWriter (LemonWriter &_writer, const _LabelWriter &_labelWriter, const std::string &_name=std::string()) | |
Constructor. | |
virtual | ~EdgeWriter () |
Destructor. | |
void | writeEdge (const std::string &name, const Edge &item) |
Add an edge writer command for the EdgeWriter. | |
Protected Member Functions | |
virtual std::string | header () |
The header of the section. | |
virtual void | write (std::ostream &os) |
Writer function of the section. |
|
Constructor for EdgeWriter. It creates the EdgeWriter and attach it into the given LemonWriter. The given |
|
Destructor for EdgeWriter. |
|
Add an edge writer command for the EdgeWriter. |
|
It gives back the header of the section. Implements LemonWriter::SectionWriter. |
|
Write the content of the section. Implements LemonWriter::SectionWriter. |