#include <ogdf/fileformats/OgmlParser.h>
Objects of this class represent a validating parser for files in Ogml.
Definition at line 810 of file OgmlParser.h.
| ogdf::OgmlParser::OgmlParser | ( | ) | [inline] |
Definition at line 1022 of file OgmlParser.h.
| ogdf::OgmlParser::~OgmlParser | ( | ) | [inline] |
Definition at line 1024 of file OgmlParser.h.
| bool ogdf::OgmlParser::buildAttributedClusterGraph | ( | Graph & | G, |
| ClusterGraphAttributes & | CGA, | ||
| const XmlTagObject * | root | ||
| ) | [private] |
| bool ogdf::OgmlParser::buildCluster | ( | const XmlTagObject * | rootTag, |
| Graph & | G, | ||
| ClusterGraph & | CG | ||
| ) | [private] |
| bool ogdf::OgmlParser::buildClusterRecursive | ( | const XmlTagObject * | xmlTag, |
| cluster | parent, | ||
| Graph & | G, | ||
| ClusterGraph & | CG | ||
| ) | [private] |
| bool ogdf::OgmlParser::buildGraph | ( | Graph & | G | ) | [private] |
| static void ogdf::OgmlParser::buildHashTables | ( | ) | [static, private] |
Builds all hashtables above.
| bool ogdf::OgmlParser::checkGraphType | ( | const XmlTagObject * | xmlTag | ) | const [private] |
Finds the OGML-tag in the parse tree with the specified id, stores the tag in xmlTag recTag is the tag for recursive calls returns false if something goes wrongChecks the graph type and stores it in the member variable m_graphType xmlTag has to be the root or the graph or the structure Ogml-tag returns false if something goes wrong
| GraphAttributes::EdgeArrow ogdf::OgmlParser::getArrowStyle | ( | int | i | ) | [private] |
| int ogdf::OgmlParser::getArrowStyleAsInt | ( | String | s, |
| String | sot | ||
| ) | [private] |
| int ogdf::OgmlParser::getBrushPatternAsInt | ( | String | s | ) | [private] |
| GraphType ogdf::OgmlParser::getGraphType | ( | ) | [inline, private] |
Definition at line 883 of file OgmlParser.h.
| bool ogdf::OgmlParser::getIdFromString | ( | String | str, |
| int | id | ||
| ) | [private] |
| int ogdf::OgmlParser::getImageAlignmentAsInt | ( | String | s | ) | [private] |
| int ogdf::OgmlParser::getImageStyleAsInt | ( | String | s | ) | [private] |
| String ogdf::OgmlParser::getLabelCaptionFromString | ( | String | str | ) | [private] |
| int ogdf::OgmlParser::getLineTypeAsInt | ( | String | s | ) | [private] |
| String ogdf::OgmlParser::getNodeTemplateFromOgmlValue | ( | String | s | ) | [private] |
| int ogdf::OgmlParser::getShapeAsInt | ( | String | s | ) | [private] |
| bool ogdf::OgmlParser::isGraphHierarchical | ( | const XmlTagObject * | xmlTag | ) | const [private] |
true if subgraph is an hierarchical graph
| bool ogdf::OgmlParser::isNodeHierarchical | ( | const XmlTagObject * | xmlTag | ) | const [private] |
true if node contains other nodes
| void ogdf::OgmlParser::printValidityInfo | ( | const OgmlTag & | ot, |
| const XmlTagObject & | xto, | ||
| int | valStatus, | ||
| int | line | ||
| ) | [private] |
Wrapper method for validate method above. Returns true when validation is successfull, false otherwise.Prints some useful information about un-/successful validation.
| bool ogdf::OgmlParser::read | ( | const char * | fileName, |
| Graph & | G, | ||
| ClusterGraph & | CG | ||
| ) |
| bool ogdf::OgmlParser::read | ( | const char * | fileName, |
| Graph & | G, | ||
| ClusterGraph & | CG, | ||
| ClusterGraphAttributes & | CGA | ||
| ) |
| bool ogdf::OgmlParser::setLabelsRecursive | ( | Graph & | G, |
| ClusterGraphAttributes & | CGA, | ||
| XmlTagObject * | root | ||
| ) | [private] |
| int ogdf::OgmlParser::validate | ( | const XmlTagObject * | xmlTag, |
| int | ogmlTag | ||
| ) | [private] |
Checks if all tags (XmlTagObject), their attributes (XmlAttributeObject) and their values are valid (are tags expected, do they own the rigth attributes...) and sets a valid flag to these. Furthermore it checks if ids of tags are unique and if id references are valid. See OgmlTag.h for semantics of the encodings. Returns the validity state of the current processed tag.
| void ogdf::OgmlParser::validate | ( | const char * | fileName | ) | [private] |
Hashing<int, OgmlAttribute> ogdf::OgmlParser::attributes [static, private] |
Hashtable for saving all ogml attributes.
Definition at line 819 of file OgmlParser.h.
Hashing<int, OgmlAttributeValue> ogdf::OgmlParser::attValues [static, private] |
Hashtable for saving all values of ogml attributes.
Definition at line 823 of file OgmlParser.h.
GraphType ogdf::OgmlParser::graphType [mutable, private] |
Saves a graph type. Is set by checkGraphType.
Definition at line 835 of file OgmlParser.h.
bool ogdf::OgmlParser::hashTablesBuilt [static, private] |
Flag denotes whether hashtables above were built or not.
Definition at line 827 of file OgmlParser.h.
Hashing<String, const XmlTagObject*> ogdf::OgmlParser::ids [private] |
Saves all ids of an ogml-file.
Definition at line 839 of file OgmlParser.h.
Hashing<int, String> ogdf::OgmlParser::m_clusterIds [private] |
Definition at line 901 of file OgmlParser.h.
Hashing<String, cluster> ogdf::OgmlParser::m_clusters [private] |
Definition at line 891 of file OgmlParser.h.
XmlTagObject* ogdf::OgmlParser::m_constraintsTag [private] |
Definition at line 971 of file OgmlParser.h.
Hashing<int, String> ogdf::OgmlParser::m_edgeIds [private] |
Definition at line 900 of file OgmlParser.h.
Hashing<String, edge> ogdf::OgmlParser::m_edges [private] |
Definition at line 890 of file OgmlParser.h.
Hashing<int, String> ogdf::OgmlParser::m_nodeIds [private] |
Definition at line 899 of file OgmlParser.h.
Hashing<String, node> ogdf::OgmlParser::m_nodes [private] |
Definition at line 883 of file OgmlParser.h.
Definition at line 976 of file OgmlParser.h.
Definition at line 975 of file OgmlParser.h.
Hashing<String, DPoint> ogdf::OgmlParser::points [private] |
Definition at line 894 of file OgmlParser.h.
Hashing<int, OgmlTag> ogdf::OgmlParser::tags [static, private] |
Hashtable for saving all ogml tags.
Definition at line 815 of file OgmlParser.h.