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::chem::MoleculeComponent_GMLparser Class Reference

MoleculeComponent parser. More...

#include <MoleculeComponent_GMLparser.hh>

Static Public Member Functions

static std::pair
< MoleculeComponent, int > 
parseGML (const std::string &GML_string) throw (std::invalid_argument)
 

Detailed Description

  This class is a wrapper for the ggl::chem::MoleculeComponent_GML_grammar
  BNF grammar parser. It parses a GML string representation of a
  ggl::MoleculeDecomposition::MoleculeComponent object. This includes its
  properties as well as the additional constraints needed for matching.
  See ggl::chem::MoleculeComponent_GML_grammar for further details
Author
Martin Mann (c) 2012 http://www.bioinf.uni-freiburg.de/~mmann/

Definition at line 25 of file MoleculeComponent_GMLparser.hh.

Member Function Documentation

static std::pair< MoleculeComponent, int > ggl::chem::MoleculeComponent_GMLparser::parseGML ( const std::string &  GML_string) throw (std::invalid_argument)
static

Parses a GML string and generates a MoleculeComponent::PatternGraph object

Parameters
GML_stringthe string to parse
Returns
pair.first = the graph encoding of the molecule pair.second = -1 if parsing was successfull, in error case it returns the string position that caused the parsing error
Exceptions
std::invalid_argumentin case a check fails

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