To read a Graph from a file.
More...
#include <graph/graph/greader.h>
To read a Graph from a file.
Definition at line 61 of file greader.h.
◆ GraphReader() [1/2]
GraphReader::GraphReader |
( |
const std::string & |
filename, |
|
|
const carto::SyntaxSet & |
syntax, |
|
|
const carto::AttributedReader::HelperSet & |
helpers = carto::AttributedReader::HelperSet() |
|
) |
| |
configure the parametres
- Parameters
-
filename | name of the file to read from |
syntax | |
helpers | |
◆ GraphReader() [2/2]
GraphReader::GraphReader |
( |
const carto::SyntaxSet & |
syntax, |
|
|
const carto::AttributedReader::HelperSet & |
helpers = carto::AttributedReader::HelperSet() |
|
) |
| |
configure the parametres
- Parameters
-
◆ ~GraphReader()
virtual GraphReader::~GraphReader |
( |
| ) |
|
|
virtual |
◆ attach() [1/3]
void GraphReader::attach |
( |
std::istream & |
s, |
|
|
int |
line_num = 1 |
|
) |
| |
◆ attach() [2/3]
void GraphReader::attach |
( |
carto::rc_ptr< carto::DataSource > |
ds | ) |
|
◆ attach() [3/3]
void GraphReader::attach |
( |
const std::string & |
filename | ) |
|
◆ close()
void GraphReader::close |
( |
| ) |
|
◆ dataSource() [1/2]
◆ dataSource() [2/2]
const carto::rc_ptr<carto::DataSource> GraphReader::dataSource |
( |
| ) |
const |
◆ eof()
bool GraphReader::eof |
( |
| ) |
const |
◆ is_open()
bool GraphReader::is_open |
( |
| ) |
const |
◆ line()
int GraphReader::line |
( |
| ) |
const |
◆ name()
virtual std::string GraphReader::name |
( |
| ) |
const |
|
virtual |
◆ open()
void GraphReader::open |
( |
const std::string & |
filename | ) |
|
◆ operator!()
bool GraphReader::operator! |
( |
| ) |
const |
◆ read()
virtual void GraphReader::read |
( |
Graph & |
graph | ) |
|
|
virtual |
read a Graph attributes from a file
- Parameters
-
◆ setSyntax()
◆ syntaxSet()
The documentation for this class was generated from the following file: