LemonReader reader("input.lgf"); ContentReader content(reader); reader.run();
#include <lemon/lemon_reader.h>
Public Member Functions | |
ContentReader (LemonReader &_reader) | |
Constructor. | |
virtual | ~ContentReader () |
int | nodeSetNum () const |
std::string | nodeSetName (int index) const |
const std::vector< std::string > & | nodeSetMaps (int index) const |
int | edgeSetNum () const |
std::string | edgeSetName (int index) const |
const std::vector< std::string > & | edgeSetMaps (int index) const |
int | uEdgeSetNum () const |
std::string | uEdgeSetName (int index) const |
const std::vector< std::string > & | uEdgeSetMaps (int index) const |
int | nodesNum () const |
std::string | nodesName (int index) const |
const std::vector< std::string > & | nodesItems (int index) const |
int | edgesNum () const |
std::string | edgesName (int index) const |
const std::vector< std::string > & | edgesItems (int index) const |
int | uEdgesNum () const |
std::string | uEdgesName (int index) const |
const std::vector< std::string > & | uEdgesItems (int index) const |
int | attributesNum () const |
std::string | attributesName (int index) const |
const std::vector< std::string > & | attributesItems (int index) const |
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) |
ContentReader | ( | LemonReader & | _reader | ) | [inline] |
Constructor for
virtual ~ContentReader | ( | ) | [inline, virtual] |
Desctructor.
int nodeSetNum | ( | ) | const [inline] |
Gives back how many nodesets are in the file.
std::string nodeSetName | ( | int | index | ) | const [inline] |
Gives back the name of nodeset on the indiced position.
const std::vector<std::string>& nodeSetMaps | ( | int | index | ) | const [inline] |
Gives back the map names of nodeset on the indiced position.
int edgeSetNum | ( | ) | const [inline] |
Gives back how many edgesets are in the file.
std::string edgeSetName | ( | int | index | ) | const [inline] |
Gives back the name of edgeset on the indiced position.
const std::vector<std::string>& edgeSetMaps | ( | int | index | ) | const [inline] |
Gives back the map names of edgeset on the indiced position.
int uEdgeSetNum | ( | ) | const [inline] |
Gives back how many undirected edgesets are in the file.
std::string uEdgeSetName | ( | int | index | ) | const [inline] |
Gives back the name of undirected edgeset on the indiced position.
const std::vector<std::string>& uEdgeSetMaps | ( | int | index | ) | const [inline] |
Gives back the map names of undirected edgeset on the indiced position.
int nodesNum | ( | ) | const [inline] |
Gives back how many labeled nodes section are in the file.
std::string nodesName | ( | int | index | ) | const [inline] |
Gives back the name of labeled nodes section on the indiced position.
const std::vector<std::string>& nodesItems | ( | int | index | ) | const [inline] |
Gives back the names of the labeled nodes in the indiced section.
int edgesNum | ( | ) | const [inline] |
Gives back how many labeled edges section are in the file.
std::string edgesName | ( | int | index | ) | const [inline] |
Gives back the name of labeled edges section on the indiced position.
const std::vector<std::string>& edgesItems | ( | int | index | ) | const [inline] |
Gives back the names of the labeled edges in the indiced section.
int uEdgesNum | ( | ) | const [inline] |
Gives back how many labeled undirected edges section are in the file.
std::string uEdgesName | ( | int | index | ) | const [inline] |
Gives back the name of labeled undirected edges section on the indiced position.
const std::vector<std::string>& uEdgesItems | ( | int | index | ) | const [inline] |
Gives back the names of the labeled undirected edges in the indiced section.
int attributesNum | ( | ) | const [inline] |
Gives back how many attributes section are in the file.
std::string attributesName | ( | int | index | ) | const [inline] |
Gives back the name of attributes section on the indiced position.
const std::vector<std::string>& attributesItems | ( | int | index | ) | const [inline] |
Gives back the names of the attributes in the indiced section.
bool header | ( | const std::string & | line | ) | [inline, protected, virtual] |
It gives back true when the section is common section.
Implements SectionReader.
void read | ( | std::istream & | is | ) | [inline, protected, virtual] |
Retrieve the items from various sections.
Implements SectionReader.