#include <lemon/lemon_writer.h>
Inherited by AttributeWriter, AttributeWriter< _WriterTraits >, EdgeSetWriter, EdgeSetWriter< _Graph, _WriterTraits >, EdgeWriter, NodeSetWriter, NodeSetWriter< _Graph, _WriterTraits >, NodeWriter, UEdgeSetWriter, UEdgeSetWriter< _Graph, _WriterTraits >, and UEdgeWriter.
Inheritance diagram for LemonWriter::SectionWriter:
header()
member function what gives back the header line of the section. The write()
member should write the content of the section to the stream.
Protected Member Functions | |
SectionWriter (LemonWriter &writer) | |
Constructor for SectionWriter. | |
virtual std::string | header ()=0 |
The header of section. | |
virtual void | write (std::ostream &os)=0 |
Writer function of the section. | |
virtual bool | valid () |
Gives back true when the section should be written. |
SectionWriter | ( | LemonWriter & | writer | ) | [inline, protected] |
Constructor for SectionWriter. It attach this writer to the given LemonWriter.
virtual std::string header | ( | ) | [protected, pure virtual] |
It gives back the header of the section.
Implemented in NodeSetWriter, EdgeSetWriter, UEdgeSetWriter, NodeWriter, EdgeWriter, UEdgeWriter, AttributeWriter, NodeSetWriter< _Graph, _WriterTraits >, EdgeSetWriter< _Graph, _WriterTraits >, UEdgeSetWriter< _Graph, _WriterTraits >, and AttributeWriter< _WriterTraits >.
virtual void write | ( | std::ostream & | os | ) | [protected, pure virtual] |
Write the content of the section.
Implemented in NodeSetWriter, EdgeSetWriter, UEdgeSetWriter, NodeWriter, EdgeWriter, UEdgeWriter, AttributeWriter, NodeSetWriter< _Graph, _WriterTraits >, EdgeSetWriter< _Graph, _WriterTraits >, UEdgeSetWriter< _Graph, _WriterTraits >, and AttributeWriter< _WriterTraits >.
virtual bool valid | ( | ) | [inline, protected, virtual] |
Gives back true when the section should be written.
Reimplemented in NodeWriter, EdgeWriter, UEdgeWriter, AttributeWriter, and AttributeWriter< _WriterTraits >.