@nodes
nodes_name
, but the nodes_name
may be empty.
Each line in the section contains the name of the node and then the node label. #include <lemon/lemon_writer.h>
Public Member Functions | |
template<typename _LabelWriter > | |
NodeWriter (LemonWriter &_writer, const _LabelWriter &_labelWriter, const std::string &_name=std::string()) | |
Constructor. | |
virtual | ~NodeWriter () |
Destructor. | |
void | writeNode (std::string label, const Node &item) |
Protected Member Functions | |
virtual std::string | header () |
The header of the section. | |
virtual void | write (std::ostream &os) |
Writer function of the section. | |
virtual bool | valid () |
NodeWriter | ( | LemonWriter & | _writer, | |
const _LabelWriter & | _labelWriter, | |||
const std::string & | _name = std::string() | |||
) | [inline] |
Constructor for NodeWriter. It creates the NodeWriter and attach it into the given LemonWriter. The given _LabelWriter
will write the nodes' label what can be a nodeset writer.
virtual ~NodeWriter | ( | ) | [inline, virtual] |
Destructor for NodeWriter.
void writeNode | ( | std::string | label, | |
const Node & | item | |||
) | [inline] |
Add a node writer command for the NodeWriter.
virtual std::string header | ( | ) | [inline, protected, virtual] |
It gives back the header of the section.
Implements SectionWriter.
virtual void write | ( | std::ostream & | os | ) | [inline, protected, virtual] |
Write the content of the section.
Implements SectionWriter.
virtual bool valid | ( | ) | [inline, protected, virtual] |
Gives back true when the section should be written.
Reimplemented from SectionWriter.