34 #ifndef GRAPH_GRAPH_GREADER_H
35 #define GRAPH_GRAPH_GREADER_H
44 #include <soma-io/reader/areader.h>
78 const carto::AttributedReader::HelperSet& helpers
79 = carto::AttributedReader::HelperSet());
86 const carto::AttributedReader::HelperSet& helpers
87 = carto::AttributedReader::HelperSet());
106 void open(
const std::string& filename)
109 void attach( std::istream & s,
int line_num = 1 );
111 void attach(
const std::string & filename );
112 virtual std::string
name()
const;
143 std::map<std::string,int> _parsernames;
144 std::vector<GraphParser *> _parsers;
145 std::string _filename;
147 carto::AttributedReader::HelperSet _helpers;
#define __deprecated__(msg)
To read a Graph from a file.
void setSyntax(const carto::SyntaxSet &syntax)
GraphReader(const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
configure the parametres
void attach(std::istream &s, int line_num=1)
const carto::rc_ptr< carto::DataSource > dataSource() const
void attach(const std::string &filename)
virtual void read(Graph &graph)
read a Graph attributes from a file
virtual std::string name() const
carto::rc_ptr< carto::DataSource > dataSource()
const carto::SyntaxSet & syntaxSet() const
GraphReader(const std::string &filename, const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
configure the parametres
void attach(carto::rc_ptr< carto::DataSource > ds)
void open(const std::string &filename) __attribute__((__deprecated__("use attach() instead")))
The base class for graphs.
GRAPH_API GraphReader & operator>>(GraphReader &reader, Graph &graph)
Restore a graph from a file using a GraphReader.
std::map< std::string, Syntax > SyntaxSet