34 #ifndef GRAPH_TREE_TREADER_H
35 #define GRAPH_TREE_TREADER_H
41 #include <soma-io/reader/areader.h>
65 const carto::AttributedReader::HelperSet& helpers
66 = carto::AttributedReader::HelperSet() );
68 const carto::AttributedReader::HelperSet& helpers
69 = carto::AttributedReader::HelperSet() );
72 const carto::AttributedReader::HelperSet& helpers
73 = carto::AttributedReader::HelperSet() );
80 const carto::AttributedReader::HelperSet& helpers
81 = carto::AttributedReader::HelperSet() );
89 __attribute__((__deprecated__("OBSOLETE, use read(
Tree & ) instead")));
92 void open(const std::
string& filename)
93 __attribute__((__deprecated__("use attach() instead")));
95 void attach( std::istream & s,
int line_num = 1 );
96 void attach( const std::
string & filename );
99 virtual std::
string name() const;
103 std::list<
carto::TreeParser *> & parsers();
114 carto::AttributedReader::HelperSet _helpers;
117 std::list<carto::TreeParser *> _parsers;
To read a Tree from a file.
TreeReader(const TreeFactory &factory, const std::string &filename, const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
virtual void readTree(Tree *) __attribute__((__deprecated__("OBSOLETE
TreeReader(const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
void setSyntax(const carto::SyntaxSet &syntax)
TreeReader(const std::string &filename, const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
TreeReader(const TreeFactory &factory, const carto::SyntaxSet &syntax, const carto::AttributedReader::HelperSet &helpers=carto::AttributedReader::HelperSet())
configure the parametres
virtual void read(Tree &)
Abstract base class for visiting Trees.
std::map< std::string, Syntax > SyntaxSet
GRAPH_API TreeReader & operator>>(TreeReader &reader, Tree &tree)
?