#include <lemon/lemon_reader.h>
Inherits CommonSectionReaderBase.
Inheritance diagram for EdgeReader:
@edges
edges_id
, but the edges_id
may be empty.Each line in the section contains the name of the edge and then the edge id.
Public Member Functions | |
template<typename _IdReader> | |
EdgeReader (LemonReader &_reader, const _IdReader &_idReader, const std::string &_id=std::string()) | |
Constructor. | |
virtual | ~EdgeReader () |
Destructor. | |
void | readEdge (const std::string &name, Edge &item) |
Add an edge reader command for the EdgeReader. | |
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 for EdgeReader. It creates the EdgeReader and attach it into the given LemonReader. It will use the given edge id reader to give back the edges. The reader will read the section only if the |
|
Destructor for EdgeReader. |
|
Add an edge reader command for the EdgeReader. |
|
It gives back true when the header line start with Implements LemonReader::SectionReader. |
|
It reads the content of the section. Implements LemonReader::SectionReader. |