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());
101 virtual void read(
Graph& graph);
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;
114 bool operator!()
const;
115 bool is_open()
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)
The base class for graphs.
const carto::SyntaxSet & syntaxSet() const
std::map< std::string, Syntax > SyntaxSet
To read a Graph from a file.
GRAPH_API GraphReader & operator>>(GraphReader &reader, Graph &graph)
Restore a graph from a file using a GraphReader.