Generated on Wed Apr 29 2015 11:51:41 for GGL-4.1.2 by doxygen 1.8.3.1
Static Public Member Functions
ggl::Rule_GMLparser Class Reference

Graph grammar rule parser. More...

#include <Rule_GMLparser.hh>

Static Public Member Functions

static std::pair< Rule, int > parseCompactRule (const std::string &GML_string) throw (Rule_GML_error)
 
static std::pair< Rule, int > parseRule (const std::string &GML_string) throw (Rule_GML_error)
 

Detailed Description

  Wrapper for ggl::Rule_GML_grammar BNF grammar parser that parses a
  GML string representation of a ggl::Rule object. See there for further
  details.
Author
Martin Mann (c) 2012 http://www.bioinf.uni-freiburg.de/~mmann/

Definition at line 22 of file Rule_GMLparser.hh.

Member Function Documentation

static std::pair< Rule, int > ggl::Rule_GMLparser::parseCompactRule ( const std::string &  GML_string) throw (Rule_GML_error)
static

Parses a GRAPH GML string that encodes a compacted RULE GML and generates a Rule object.

NOTE: rule constraints, its label, or wildcard information are not parsed, just the nodes and edges!

Parameters
GML_stringthe string to parse
Returns
pair.first = the graph encoding of the molecule pair.second = -1 if parsing was successful, in error case it returns the string position that caused the parsing error
Exceptions
ggl::Rule_GML_errorif parsing error occur
static std::pair< Rule, int > ggl::Rule_GMLparser::parseRule ( const std::string &  GML_string) throw (Rule_GML_error)
static

Parses a GML string and generates a Rule object

Parameters
GML_stringthe string to parse
Returns
pair.first = the graph encoding of the molecule pair.second = -1 if parsing was successful, in error case it returns the string position that caused the parsing error
Exceptions
ggl::Rule_GML_errorif parsing error occur

The documentation for this class was generated from the following file: