43 namespace GmlObjectType {
49 const static int Key = 5;
50 const static int Eof = 6;
54 namespace GmlParserPredefinedKey {
55 const static int Id = 0;
65 const static int X = 10;
66 const static int Y = 11;
67 const static int W = 12;
68 const static int H = 13;
69 const static int Type = 14;
74 const static int Line = 19;
78 const static int Fill = 23;
80 const static int Root = 25;
86 const static int line = 31;
114 m_valueType(GmlObjectType::
IntValue), m_intValue(intValue) { }
117 m_valueType(GmlObjectType::
DoubleValue), m_doubleValue(doubleValue) { }
120 m_valueType(GmlObjectType::
StringValue), m_stringValue(stringValue) { }
123 m_valueType(GmlObjectType::
ListBegin), m_pFirstSon(nullptr) { }
155 explicit GmlParser(istream &is,
bool doCheck =
false);
164 bool error()
const {
return m_error; }
188 bool recursiveClusterRead(
194 bool readClusterAttributes(
200 void createObjectTree(istream &is,
bool doCheck);
201 void initPredefinedKeys();
202 void setError(
const char *errorString);
204 GmlObject *parseList(
int closingKey,
int errorKey);
208 GmlKey hashString(
const string &str);
210 GmlObject *getNodeIdRange(
int &minId,
int &maxId);
213 void destroyObjectList(
GmlObject *
object);
215 void indent(ostream &os,
int d);
216 void output(ostream &os,
GmlObject *
object,
int d);
static const int LineWidth
static const int SubGraph
GmlObject(GmlKey key, const char *stringValue)
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Derived class of GraphObserver providing additional functionality to handle clustered graphs...
static const int Graphics
Hashing< string, int > m_hashTable
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static const int Generalization
static const int IntValue
Represents node in GML parse tree.
Declaration of classes used for hashing.
Polylines with real coordinates.
Reads GML file and constructs GML parse tree.
GmlObject(GmlKey key, double doubleValue)
GmlObject * m_graphObject
static const int Template
static const int EdgeWeight
Representation of clustered graphs.
Colors represented as RGBA values.
Stores additional attributes of a graph (like layout information).
const char * m_stringSymbol
static const int ListBegin
Stores additional attributes of a clustered graph (like layout information).
static const int Directed
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Declares ClusterGraphAttributes, an extension of class GraphAttributes, to store clustergraph layout ...
Representation of clusters in a clustered graph.
const char * m_stringValue
static const int NextPredefKey
const string & errorString() const
static const int StringValue
GmlObject(GmlKey key, int intValue)
The namespace for all OGDF objects.
int id(GmlObject *object) const
static const int DoubleValue
Array< node > m_mapToNode