Generated on Wed Apr 29 2015 11:51:40 for GGL-4.1.2 by doxygen 1.8.3.1
Graph_GMLparser.hh
Go to the documentation of this file.
1 #ifndef GGL_GRAPH_GML_PARSER_HH_
2 #define GGL_GRAPH_GML_PARSER_HH_
3 
4 #include <utility>
5 #include <vector>
6 
7 #include "ggl/Graph.hh"
8 
9 namespace ggl {
10 
11 
12  /*! @brief Graph GML parser
13  *
14  * This is a wrapper for the ggl::Graph_GML_grammar BNF parser that parses
15  * a GML string representation of a ggl::Graph object. See there for
16  * further details.
17  *
18  * @author Martin Mann (c) 2012 http://www.bioinf.uni-freiburg.de/~mmann/
19  *
20  */
22  {
23 
24  public:
25 
26  //! Parses a GML string and generates a Graph object
27  //! @param GML_string the string to parse
28  //! @return pair.first = the graph object
29  //! pair.second = -1 if parsing was successful,
30  //! in error case it returns the string position that caused
31  //! the parsing error
32  static
33  std::pair< Graph, int >
34  parseGraph( const std::string & GML_string );
35 
36  };
37 
38 
39 } // namespace ggl
40 
41 
42 #endif /*GGL_GRAPH_GML_PARSER_HH_*/