Reads GML file and constructs GML parse tree. More...
#include <ogdf/fileformats/GmlParser.h>
Public Member Functions | |
| Parser (std::istream &is, bool doCheck=false) | |
| ~Parser () | |
| Destruction: destroys object tree. | |
| bool | error () const |
| bool | read (Graph &G) |
| bool | read (Graph &G, GraphAttributes &GA) |
| bool | readCluster (Graph &G, ClusterGraph &CG, ClusterGraphAttributes *ACG=nullptr) |
Protected Member Functions | |
| bool | recursiveClusterRead (Object *clusterObject, ClusterGraph &CG, cluster c, ClusterGraphAttributes *ACG=nullptr) |
| Reads cluster subtree information recursively. | |
Private Member Functions | |
| void | createObjectTree (std::istream &is, bool doCheck) |
| void | destroyObjectList (Object *object) |
| bool | getLine () |
| ObjectType | getNextSymbol () |
| Object * | getNodeIdRange (int &minId, int &maxId) |
| Object * | parseList (ObjectType closingKey) |
| void | readLineAttribute (Object *object, DPolyline &dpl) |
| void | setError (const string &errorString, Logger::Level level=Logger::Level::Default) |
Private Attributes | |
| char | m_cStore |
| bool | m_doCheck |
| double | m_doubleSymbol |
| bool | m_error |
| Object * | m_graphObject |
| int | m_intSymbol |
| std::istream * | m_is |
| Key | m_keySymbol |
| char * | m_lineBuffer |
| string | m_longString |
| Array< node > | m_mapToNode |
| Object * | m_objectTree |
| char * | m_pCurrent |
| char * | m_pStore |
| char * | m_rLineBuffer |
| const char * | m_stringSymbol |
Reads GML file and constructs GML parse tree.
Definition at line 79 of file GmlParser.h.
| ogdf::gml::Parser::~Parser | ( | ) |
Destruction: destroys object tree.
|
inline |
Definition at line 106 of file GmlParser.h.
|
private |
|
private |
|
private |
| bool ogdf::gml::Parser::read | ( | Graph & | G, |
| GraphAttributes & | GA | ||
| ) |
| bool ogdf::gml::Parser::readCluster | ( | Graph & | G, |
| ClusterGraph & | CG, | ||
| ClusterGraphAttributes * | ACG = nullptr |
||
| ) |
|
protected |
Reads cluster subtree information recursively.
|
private |
|
private |
Definition at line 83 of file GmlParser.h.
|
private |
Definition at line 93 of file GmlParser.h.
|
private |
Definition at line 86 of file GmlParser.h.
|
private |
Definition at line 81 of file GmlParser.h.
|
private |
Definition at line 95 of file GmlParser.h.
|
private |
Definition at line 85 of file GmlParser.h.
|
private |
Definition at line 80 of file GmlParser.h.
|
private |
Definition at line 88 of file GmlParser.h.
|
private |
Definition at line 83 of file GmlParser.h.
|
private |
Definition at line 89 of file GmlParser.h.
Definition at line 94 of file GmlParser.h.
|
private |
Definition at line 91 of file GmlParser.h.
|
private |
Definition at line 83 of file GmlParser.h.
|
private |
Definition at line 83 of file GmlParser.h.
|
private |
Definition at line 83 of file GmlParser.h.
Definition at line 87 of file GmlParser.h.