#include <lemon/lemon_reader.h>
Inherits CommonSectionReaderBase.
Inheritance diagram for AttributeReader:
@attributes
attributeset_id
, but the attributeset_id may be empty.The attributeset section contains several lines. Each of them starts with an attribute and then a the value for the id.
Public Member Functions | |
AttributeReader (LemonReader &_reader, const std::string &_id=std::string()) | |
Constructor. | |
virtual | ~AttributeReader () |
Destructor. | |
template<typename Value> | |
AttributeReader & | readAttribute (const std::string &id, Value &value) |
Add an attribute reader command for the reader. | |
template<typename Reader, typename Value> | |
AttributeReader & | readAttribute (const std::string &name, Value &value, const Reader &reader=Reader()) |
Add an attribute reader command for the reader. | |
Protected Member Functions | |
bool | header (const std::string &line) |
Gives back true when the SectionReader can process the section with the given header line. | |
void | read (std::istream &is) |
Reader function of the section. |
|
Constructor for AttributeReader. It creates the AttributeReader and attach it into the given LemonReader. The reader process a section only if the |
|
Destructor for AttributeReader. |
|
Add an attribute reader command for the reader. |
|
Add an attribute reader command for the reader. |
|
It gives back true when the header line start with Implements LemonReader::SectionReader. |
|
It reads the content of the section. Implements LemonReader::SectionReader. |