Open
Graph Drawing
Framework

 v.2010.10
 

Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

ogdf::GmlParser Class Reference

#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 StringerrorString () 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)
GmlObjectparseList (GmlObjectType closingKey, GmlObjectType errorKey)
GmlObjectType getNextSymbol ()
bool getLine ()
GmlKey hashString (const String &str)
GmlObjectgetNodeIdRange (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
GmlObjectm_objectTree
bool m_doCheck
Array< nodem_mapToNode
GmlObjectm_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

bool ogdf::GmlParser::attributedClusterRead ( GmlObject rootCluster,
ClusterGraph CG,
ClusterGraphAttributes ACG 
) [protected]
bool ogdf::GmlParser::clusterRead ( GmlObject rootCluster,
ClusterGraph CG 
) [protected]
void ogdf::GmlParser::createObjectTree ( istream &  is,
bool  doCheck 
) [private]
void ogdf::GmlParser::destroyObjectList ( GmlObject object  )  [private]
bool ogdf::GmlParser::error (  )  const [inline]

Definition at line 166 of file GmlParser.h.

const String& ogdf::GmlParser::errorString (  )  const [inline]

Definition at line 168 of file GmlParser.h.

bool ogdf::GmlParser::getLine (  )  [private]
GmlObjectType ogdf::GmlParser::getNextSymbol (  )  [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]

Definition at line 163 of file GmlParser.h.

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]
GmlObject* ogdf::GmlParser::parseList ( GmlObjectType  closingKey,
GmlObjectType  errorKey 
) [private]
bool ogdf::GmlParser::read ( Graph G  ) 
bool ogdf::GmlParser::read ( Graph G,
GraphAttributes AG 
)
bool ogdf::GmlParser::readAttributedCluster ( Graph G,
ClusterGraph CG,
ClusterGraphAttributes ACG 
)
bool ogdf::GmlParser::readCluster ( Graph G,
ClusterGraph CG 
)
bool ogdf::GmlParser::readClusterAttributes ( GmlObject cGraphics,
cluster  c,
ClusterGraphAttributes ACG 
) [protected]
void ogdf::GmlParser::readLineAttribute ( GmlObject object,
DPolyline dpl 
) [private]
bool ogdf::GmlParser::recursiveAttributedClusterRead ( GmlObject clusterObject,
ClusterGraph CG,
ClusterGraphAttributes ACG,
cluster  c 
) [protected]
bool ogdf::GmlParser::recursiveClusterRead ( GmlObject clusterObject,
ClusterGraph CG,
cluster  c 
) [protected]
void ogdf::GmlParser::setError ( const char *  errorString  )  [private]

Member Data Documentation

char ogdf::GmlParser::m_cStore [private]

Definition at line 127 of file GmlParser.h.

Definition at line 137 of file GmlParser.h.

Definition at line 130 of file GmlParser.h.

bool ogdf::GmlParser::m_error [private]

Definition at line 124 of file GmlParser.h.

Definition at line 125 of file GmlParser.h.

Definition at line 139 of file GmlParser.h.

Definition at line 120 of file GmlParser.h.

Definition at line 129 of file GmlParser.h.

istream* ogdf::GmlParser::m_is [private]

Definition at line 123 of file GmlParser.h.

Definition at line 132 of file GmlParser.h.

Definition at line 127 of file GmlParser.h.

Definition at line 133 of file GmlParser.h.

Definition at line 138 of file GmlParser.h.

int ogdf::GmlParser::m_num [private]

Definition at line 121 of file GmlParser.h.

Definition at line 135 of file GmlParser.h.

char * ogdf::GmlParser::m_pCurrent [private]

Definition at line 127 of file GmlParser.h.

char * ogdf::GmlParser::m_pStore [private]

Definition at line 127 of file GmlParser.h.

Definition at line 127 of file GmlParser.h.

const char* ogdf::GmlParser::m_stringSymbol [private]

Definition at line 131 of file GmlParser.h.


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