#include <lemon/lemon_writer.h>
Inherits CommonSectionWriterBase.
Inheritance diagram for UndirEdgeWriter:
@undiredges
undiredges_id
, but the undiredges_id
may be empty.Each line in the section contains the label of the undirected edge and then the undirected edge id.
Public Member Functions | |
template<typename _IdWriter> | |
UndirEdgeWriter (LemonWriter &_writer, const _IdWriter &_idWriter, const std::string &_id=std::string()) | |
Constructor. | |
virtual | ~UndirEdgeWriter () |
Destructor. | |
void | writeEdge (const std::string &name, const Edge &item) |
Add an edge writer command for the UndirEdgeWriter. | |
void | writeUndirEdge (const std::string &name, const UndirEdge &item) |
Add an undirected edge writer command for the UndirEdgeWriter. | |
Protected Member Functions | |
virtual std::string | header () |
Header checking function. | |
virtual void | write (std::ostream &os) |
Writer function of the section. |
|
Constructor for UndirEdgeWriter. It creates the UndirEdgeWriter and attach it into the given LemonWriter. The given |
|
Destructor for UndirEdgeWriter. |
|
Add an edge writer command for the UndirEdgeWriter. |
|
Add an undirected edge writer command for the UndirEdgeWriter. |
|
It gives back true when the header line start with Implements LemonWriter::SectionWriter. |
|
Write the content of the section. Implements LemonWriter::SectionWriter. |