#include <lemon/lemon_reader.h>
Inherits LemonReader::SectionReader.
Inheritance diagram for ContentReader:
LemonReader reader("input.lgf"); ContentReader content(reader); reader.run();
Public Member Functions | |
ContentReader (LemonReader &_reader) | |
Constructor. | |
virtual | ~ContentReader () |
Desctructor. | |
int | nodeSetNum () const |
Gives back how many nodesets are in the file. | |
std::string | nodeSetName (int index) const |
Gives back the name of nodeset on the indiced position. | |
const std::vector< std::string > & | nodeSetMaps (int index) const |
Gives back the map names of nodeset on the indiced position. | |
int | edgeSetNum () const |
Gives back how many edgesets are in the file. | |
std::string | edgeSetName (int index) const |
Gives back the name of edgeset on the indiced position. | |
const std::vector< std::string > & | edgeSetMaps (int index) const |
Gives back the map names of edgeset on the indiced position. | |
int | undirEdgeSetNum () const |
Gives back how many undirected edgesets are in the file. | |
std::string | undirEdgeSetName (int index) const |
Gives back the name of undirected edgeset on the indiced position. | |
const std::vector< std::string > & | undirEdgeSetMaps (int index) const |
Gives back the map names of undirected edgeset on the indiced position. | |
int | nodesNum () const |
Gives back how many labeled nodes section are in the file. | |
std::string | nodesName (int index) const |
Gives back the name of labeled nodes section on the indiced position. | |
const std::vector< std::string > & | nodesItems (int index) const |
Gives back the names of the labeled nodes in the indiced section. | |
int | edgesNum () const |
Gives back how many labeled edges section are in the file. | |
std::string | edgesName (int index) const |
Gives back the name of labeled edges section on the indiced position. | |
const std::vector< std::string > & | edgesItems (int index) const |
Gives back the names of the labeled edges in the indiced section. | |
int | undirEdgesNum () const |
Gives back how many labeled undirected edges section are in the file. | |
std::string | undirEdgesName (int index) const |
Gives back the name of labeled undirected edges section on the indiced position. | |
const std::vector< std::string > & | undirEdgesItems (int index) const |
Gives back the names of the labeled undirected edges in the indiced section. | |
int | attributesNum () const |
Gives back how many attributes section are in the file. | |
std::string | attributesName (int index) const |
Gives back the name of attributes section on the indiced position. | |
const std::vector< std::string > & | attributesItems (int index) const |
Gives back the names of the attributes in the indiced section. | |
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) |
Retrieve the items from various sections. |
|
Constructor for |
|
Desctructor. |
|
Gives back how many nodesets are in the file. |
|
Gives back the name of nodeset on the indiced position. |
|
Gives back the map names of nodeset on the indiced position. |
|
Gives back how many edgesets are in the file. |
|
Gives back the name of edgeset on the indiced position. |
|
Gives back the map names of edgeset on the indiced position. |
|
Gives back how many undirected edgesets are in the file. |
|
Gives back the name of undirected edgeset on the indiced position. |
|
Gives back the map names of undirected edgeset on the indiced position. |
|
Gives back how many labeled nodes section are in the file. |
|
Gives back the name of labeled nodes section on the indiced position. |
|
Gives back the names of the labeled nodes in the indiced section. |
|
Gives back how many labeled edges section are in the file. |
|
Gives back the name of labeled edges section on the indiced position. |
|
Gives back the names of the labeled edges in the indiced section. |
|
Gives back how many labeled undirected edges section are in the file. |
|
Gives back the name of labeled undirected edges section on the indiced position. |
|
Gives back the names of the labeled undirected edges in the indiced section. |
|
Gives back how many attributes section are in the file. |
|
Gives back the name of attributes section on the indiced position. |
|
Gives back the names of the attributes in the indiced section. |
|
It gives back true when the section is common section. Implements LemonReader::SectionReader. |
|
Retrieve the items from various sections. Implements LemonReader::SectionReader. |