Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

NodeReader Class Template Reference
[Input Output]

#include <lemon/lemon_reader.h>

Inherits CommonSectionReaderBase.

Inheritance diagram for NodeReader:

Inheritance graph
[legend]
List of all members.

Detailed Description

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

The nodes section's header line is @nodes nodes_id, but the nodes_id may be empty.

Each line in the section contains the name of the node and then the node id.


Public Member Functions

template<typename _IdReader>
 NodeReader (LemonReader &_reader, const _IdReader &_idReader, const std::string &_id=std::string())
 Constructor.
virtual ~NodeReader ()
 Destructor.
void readNode (const std::string &name, Node &item)
 Add a node reader command for the NodeReader.

Protected Member Functions

virtual bool header (const std::string &line)
 Gives back true when the SectionReader can process the section with the given header line.
virtual void read (std::istream &is)
 Reader function of the section.


Constructor & Destructor Documentation

NodeReader LemonReader _reader,
const _IdReader &  _idReader,
const std::string _id = std::string()
[inline]
 

Constructor for NodeReader. It creates the NodeReader and attach it into the given LemonReader. It will use the given node id reader to give back the nodes. The reader will read the section only if the _id and the nodes_id are the same.

virtual ~NodeReader  )  [inline, virtual]
 

Destructor for NodeReader.


Member Function Documentation

void readNode const std::string name,
Node &  item
[inline]
 

Add a node reader command for the NodeReader.

virtual bool header const std::string line  )  [inline, protected, virtual]
 

It gives back true when the header line start with @nodes, and the header line's id and the reader's id are the same.

Implements LemonReader::SectionReader.

virtual void read std::istream is  )  [inline, protected, virtual]
 

It reads the content of the section.

Implements LemonReader::SectionReader.


The documentation for this class was generated from the following file:
Generated on Sat Aug 27 14:15:45 2005 for LEMON by  doxygen 1.4.4