NodeWriter Class Template Reference
[Input Output]

#include <lemon/lemon_writer.h>

Inherits LemonWriter::SectionWriter.

Inheritance diagram for NodeWriter:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename _Graph>
class lemon::NodeWriter< _Graph >

The nodes section's header line is @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.


Public Member Functions

template<typename _LabelWriter>
 NodeWriter (LemonWriter &_writer, const _LabelWriter &_labelWriter, const std::string &_name=std::string())
 Constructor.
virtual ~NodeWriter ()
 Destructor.
void writeNode (const std::string &name, const Node &item)
 Add a node writer command for the NodeWriter.

Protected Member Functions

virtual std::string header ()
 The header of the section.
virtual void write (std::ostream &os)
 Writer function of the section.


Constructor & Destructor Documentation

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.


Member Function Documentation

void writeNode const std::string &  name,
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 LemonWriter::SectionWriter.

virtual void write std::ostream &  os  )  [inline, protected, virtual]
 

Write the content of the section.

Implements LemonWriter::SectionWriter.


The documentation for this class was generated from the following file:
Generated on Fri Feb 3 18:42:02 2006 for LEMON by  doxygen 1.4.6