#include <ogdf/fileformats/GmlParser.h>
List of all members.
Public Types |
| enum | PredefinedKey {
idPredefKey = 0,
labelPredefKey,
CreatorPredefKey,
namePredefKey,
graphPredefKey,
versionPredefKey,
directedPredefKey,
nodePredefKey,
edgePredefKey,
graphicsPredefKey,
xPredefKey,
yPredefKey,
wPredefKey,
hPredefKey,
typePredefKey,
widthPredefKey,
sourcePredefKey,
targetPredefKey,
arrowPredefKey,
LinePredefKey,
pointPredefKey,
generalizationPredefKey,
subGraphPredefKey,
fillPredefKey,
clusterPredefKey,
rootClusterPredefKey,
vertexPredefKey,
colorPredefKey,
heightPredefKey,
stipplePredefKey,
patternPredefKey,
linePredefKey,
lineWidthPredefKey,
templatePredefKey,
edgeWeightPredefKey,
NEXTPREDEFKEY
} |
Public Member Functions |
| | GmlParser (const char *fileName, bool doCheck=false) |
| | GmlParser (istream &is, bool doCheck=false) |
| | ~GmlParser () |
| int | id (GmlObject *object) const |
| bool | error () const |
| const String & | errorString () const |
| bool | read (Graph &G) |
| bool | read (Graph &G, GraphAttributes &AG) |
| bool | readCluster (Graph &G, ClusterGraph &CG) |
| bool | readAttributedCluster (Graph &G, ClusterGraph &CG, ClusterGraphAttributes &ACG) |
Protected Member Functions |
| bool | clusterRead (GmlObject *rootCluster, ClusterGraph &CG) |
| bool | attributedClusterRead (GmlObject *rootCluster, ClusterGraph &CG, ClusterGraphAttributes &ACG) |
| bool | recursiveClusterRead (GmlObject *clusterObject, ClusterGraph &CG, cluster c) |
| bool | recursiveAttributedClusterRead (GmlObject *clusterObject, ClusterGraph &CG, ClusterGraphAttributes &ACG, cluster c) |
| bool | readClusterAttributes (GmlObject *cGraphics, cluster c, ClusterGraphAttributes &ACG) |
Private Member Functions |
| void | createObjectTree (istream &is, bool doCheck) |
| void | initPredefinedKeys () |
| void | setError (const char *errorString) |
| GmlObject * | parseList (GmlObjectType closingKey, GmlObjectType errorKey) |
| GmlObjectType | getNextSymbol () |
| bool | getLine () |
| GmlKey | hashString (const String &str) |
| GmlObject * | getNodeIdRange (int &minId, int &maxId) |
| void | readLineAttribute (GmlObject *object, DPolyline &dpl) |
| void | destroyObjectList (GmlObject *object) |
| void | indent (ostream &os, int d) |
| void | output (ostream &os, GmlObject *object, int d) |
Private Attributes |
| Hashing< String, int > | m_hashTable |
| int | m_num |
| istream * | m_is |
| bool | m_error |
| String | m_errorString |
| char * | m_rLineBuffer |
| char * | m_lineBuffer |
| char * | m_pCurrent |
| char * | m_pStore |
| char | m_cStore |
| int | m_intSymbol |
| double | m_doubleSymbol |
| const char * | m_stringSymbol |
| GmlKey | m_keySymbol |
| String | m_longString |
| GmlObject * | m_objectTree |
| bool | m_doCheck |
| Array< node > | m_mapToNode |
| GmlObject * | m_graphObject |
Detailed Description
Definition at line 119 of file GmlParser.h.
Member Enumeration Documentation
- Enumerator:
| idPredefKey |
|
| labelPredefKey |
|
| CreatorPredefKey |
|
| namePredefKey |
|
| graphPredefKey |
|
| versionPredefKey |
|
| directedPredefKey |
|
| nodePredefKey |
|
| edgePredefKey |
|
| graphicsPredefKey |
|
| xPredefKey |
|
| yPredefKey |
|
| wPredefKey |
|
| hPredefKey |
|
| typePredefKey |
|
| widthPredefKey |
|
| sourcePredefKey |
|
| targetPredefKey |
|
| arrowPredefKey |
|
| LinePredefKey |
|
| pointPredefKey |
|
| generalizationPredefKey |
|
| subGraphPredefKey |
|
| fillPredefKey |
|
| clusterPredefKey |
|
| rootClusterPredefKey |
|
| vertexPredefKey |
|
| colorPredefKey |
|
| heightPredefKey |
|
| stipplePredefKey |
|
| patternPredefKey |
|
| linePredefKey |
|
| lineWidthPredefKey |
|
| templatePredefKey |
|
| edgeWeightPredefKey |
|
| NEXTPREDEFKEY |
|
Definition at line 143 of file GmlParser.h.
Constructor & Destructor Documentation
| ogdf::GmlParser::GmlParser |
( |
const char * |
fileName, |
|
|
bool |
doCheck = false | |
|
) |
| | |
| ogdf::GmlParser::GmlParser |
( |
istream & |
is, |
|
|
bool |
doCheck = false | |
|
) |
| | |
| ogdf::GmlParser::~GmlParser |
( |
|
) |
|
Member Function Documentation
| void ogdf::GmlParser::createObjectTree |
( |
istream & |
is, |
|
|
bool |
doCheck | |
|
) |
| | [private] |
| void ogdf::GmlParser::destroyObjectList |
( |
GmlObject * |
object |
) |
[private] |
| bool ogdf::GmlParser::error |
( |
|
) |
const [inline] |
| const String& ogdf::GmlParser::errorString |
( |
|
) |
const [inline] |
| bool ogdf::GmlParser::getLine |
( |
|
) |
[private] |
| GmlObject* ogdf::GmlParser::getNodeIdRange |
( |
int & |
minId, |
|
|
int & |
maxId | |
|
) |
| | [private] |
| GmlKey ogdf::GmlParser::hashString |
( |
const String & |
str |
) |
[private] |
| int ogdf::GmlParser::id |
( |
GmlObject * |
object |
) |
const [inline] |
| void ogdf::GmlParser::indent |
( |
ostream & |
os, |
|
|
int |
d | |
|
) |
| | [private] |
| void ogdf::GmlParser::initPredefinedKeys |
( |
|
) |
[private] |
| void ogdf::GmlParser::output |
( |
ostream & |
os, |
|
|
GmlObject * |
object, |
|
|
int |
d | |
|
) |
| | [private] |
| bool ogdf::GmlParser::read |
( |
Graph & |
G |
) |
|
| void ogdf::GmlParser::setError |
( |
const char * |
errorString |
) |
[private] |
Member Data Documentation
The documentation for this class was generated from the following file: