Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::Ogml Class Reference

#include <ogdf/fileformats/Ogml.h>

Public Types

enum  AttributeId {
  a_none = -1, a_xmlns, a_textAlign, a_verticalAlign, a_angle, a_color, a_decoration, a_defaultEdgeTemplate, a_defaultLabelTemplate, a_defaultNodeTemplate, a_family, a_height, a_id, a_nodeIdRef,
  a_edgeIdRef, a_labelIdRef, a_sourceIdRef, a_targetIdRef, a_nodeStyleTemplateIdRef, a_edgeStyleTemplateIdRef, a_labelStyleTemplateIdRef, a_endpointIdRef, a_name, a_nLineType, a_nShapeType, a_pattern, a_patternColor, a_rotation,
  a_size, a_stretch, a_style, a_transform, a_type, a_uri, a_intValue, a_boolValue, a_numValue, a_variant, a_weight, a_width, a_x, a_y,
  a_z, a_constraintType, a_disabled, ATT_NUM
}
 This enumeration is used for identifying OGML attributes. More...
 
enum  AttributeValueId {
  av_any = 0, av_bold, av_black, av_bool, av_bottom, av_box, av_capitalize, av_center, av_circle, av_condensed, av_dash, av_demiBold, av_dot, av_dashDot,
  av_dashDotDot, av_ellipse, av_expanded, av_extraCondensed, av_extraExpanded, av_oBox, av_oCircle, av_oRhomb, av_oTriangle, av_arrow, av_groove, av_hexagon, av_hex, av_id,
  av_nodeIdRef, av_edgeIdRef, av_labelIdRef, av_sourceIdRef, av_targetIdRef, av_nodeStyleTemplateIdRef, av_edgeStyleTemplateIdRef, av_labelStyleTemplateIdRef, av_pointIdRef, av_image, av_inset, av_int, av_invTriangle, av_invTrapeze,
  av_invParallelogram, av_italic, av_justify, av_left, av_light, av_lineThrough, av_lowercase, av_middle, av_noFill, av_none, av_normal, av_num, av_oblique, av_oct,
  av_octagon, av_outset, av_overline, av_parallelogram, av_pentagon, av_rect, av_regular, av_rhomb, av_ridge, av_right, av_roundedRect, av_semiCondensed, av_semiExpanded, av_smallCaps,
  av_solid, av_dense1, av_dense2, av_dense3, av_dense4, av_dense5, av_dense6, av_dense7, av_hor, av_ver, av_cross, av_bDiag, av_fDiag, av_diagCross,
  av_string, av_tee, av_top, av_trapeze, av_triangle, av_ultraCondensed, av_ultraExpanded, av_underline, av_uppercase, av_uri, av_vee, av_constraintAlignment, av_constraintAnchor, av_constraintSequence,
  ATT_VAL_NUM
}
 This enumeration is used for identifying OGML attributes. More...
 
enum  GraphType { graph, clusterGraph, compoundGraph, corruptCompoundGraph, GRAPH_TYPE_NUM }
 This enumeration is used for identifying graph types. More...
 
enum  TagId {
  t_none = -1, t_bool, t_composed, t_constraint, t_constraints, t_content, t_data, t_default, t_edge, t_edgeRef, t_edgeStyle, t_edgeStyleTemplate, t_edgeStyleTemplateRef, t_endpoint,
  t_fill, t_font, t_graph, t_graphStyle, t_int, t_label, t_labelRef, t_labelStyle, t_labelStyleTemplate, t_labelStyleTemplateRef, t_layout, t_line, t_location, t_node,
  t_nodeRef, t_nodeStyle, t_nodeStyleTemplate, t_nodeStyleTemplateRef, t_num, t_ogml, t_point, t_port, t_segment, t_shape, t_source, t_sourceStyle, t_string, t_structure,
  t_styles, t_styleTemplates, t_target, t_targetStyle, t_text, t_image, TAG_NUM
}
 This enumeration is used for identifying OGML tags. More...
 
enum  ValidityState { vs_tagEmptIncl = -10, vs_idNotUnique = -9, vs_idRefErr = -8, vs_unexpTag = -7, vs_unexpAtt = -6, vs_expTagNotFound = -5, vs_expAttNotFound = -4, vs_attValueErr = -3, vs_cardErr = -2, vs_invalid = -1, vs_valid = 1 }
 This enumeration is used for encoding diverse validity stati of tags and attributes after parsing and validating a Xml file. More...
 

Static Public Attributes

static const string s_attributeNames [ATT_NUM]
 Stores the names of all OGML attributes. More...
 
static const string s_attributeValueNames [ATT_VAL_NUM]
 Stores the names of all OGML values of attributes. More...
 
static const string s_graphTypeS [GRAPH_TYPE_NUM]
 Stores the names of graph types. More...
 
static const string s_tagNames [TAG_NUM]
 Stores the names of all OGML tags. More...
 

Detailed Description

Definition at line 41 of file Ogml.h.

Member Enumeration Documentation

◆ AttributeId

This enumeration is used for identifying OGML attributes.

Enumerator
a_none 
a_xmlns 
a_textAlign 
a_verticalAlign 
a_angle 
a_color 
a_decoration 
a_defaultEdgeTemplate 
a_defaultLabelTemplate 
a_defaultNodeTemplate 
a_family 
a_height 
a_id 

id attribute

a_nodeIdRef 

attribute idRef of elements source, target, nodeRef, nodeStyle

a_edgeIdRef 

attribute idRef of elements edgeRef, edgeStyle

a_labelIdRef 

attribute idRef of elements edgeRef, edgeStyle

a_sourceIdRef 

attribute idRef of element endpoint

a_targetIdRef 

attribute idRef of element endpoint

a_nodeStyleTemplateIdRef 

attribute idRef of subelement template of element nodeStyle

a_edgeStyleTemplateIdRef 

attribute idRef of subelement template of element edgeStyle

a_labelStyleTemplateIdRef 

attribute idRef of subelement template of element labelStyle

a_endpointIdRef 

attribute idRef of subelement endpoint of element segment

a_name 
a_nLineType 

attribute type of subelement line of tag nodeStyleTemplate

a_nShapeType 

attribute type of subelement shape of tag nodeStyleTemplate

a_pattern 
a_patternColor 
a_rotation 
a_size 
a_stretch 
a_style 
a_transform 
a_type 

attribute type of subelements source-/targetStyle of tag edgeStyleTemplate

a_uri 
a_intValue 
a_boolValue 
a_numValue 
a_variant 
a_weight 
a_width 
a_x 
a_y 
a_z 
a_constraintType 
a_disabled 
ATT_NUM 

number of attributes

Definition at line 105 of file Ogml.h.

◆ AttributeValueId

This enumeration is used for identifying OGML attributes.

Enumerator
av_any 

for any attributeValue

av_bold 
av_black 
av_bool 
av_bottom 
av_box 
av_capitalize 
av_center 
av_circle 
av_condensed 
av_dash 
av_demiBold 
av_dot 
av_dashDot 
av_dashDotDot 
av_ellipse 
av_expanded 
av_extraCondensed 
av_extraExpanded 
av_oBox 
av_oCircle 
av_oRhomb 
av_oTriangle 
av_arrow 
av_groove 
av_hexagon 
av_hex 

hexadecimal value

av_id 
av_nodeIdRef 

attribute idRef of elements source, target, nodeRef, nodeStyle

av_edgeIdRef 

attribute idRef of elements edgeRef, edgeStyle

av_labelIdRef 

attribute idRef of elements edgeRef, edgeStyle

av_sourceIdRef 

attribute idRef of element endpoint

av_targetIdRef 

attribute idRef of element endpoint

av_nodeStyleTemplateIdRef 

attribute idRef of subelement template of element nodeStyle

av_edgeStyleTemplateIdRef 

attribute idRef of subelement template of element edgeStyle

av_labelStyleTemplateIdRef 

attribute idRef of subelement template of element labelStyle

av_pointIdRef 

attribute idRef of subelement endpoint of element segment

av_image 
av_inset 
av_int 

integer value

av_invTriangle 
av_invTrapeze 
av_invParallelogram 
av_italic 
av_justify 
av_left 
av_light 
av_lineThrough 
av_lowercase 
av_middle 
av_noFill 
av_none 
av_normal 
av_num 

real value

av_oblique 
av_oct 
av_octagon 
av_outset 
av_overline 
av_parallelogram 
av_pentagon 
av_rect 
av_regular 
av_rhomb 
av_ridge 
av_right 
av_roundedRect 
av_semiCondensed 
av_semiExpanded 
av_smallCaps 
av_solid 
av_dense1 
av_dense2 
av_dense3 
av_dense4 
av_dense5 
av_dense6 
av_dense7 
av_hor 
av_ver 
av_cross 
av_bDiag 
av_fDiag 
av_diagCross 
av_string 
av_tee 
av_top 
av_trapeze 
av_triangle 
av_ultraCondensed 
av_ultraExpanded 
av_underline 
av_uppercase 
av_uri 
av_vee 
av_constraintAlignment 
av_constraintAnchor 
av_constraintSequence 
ATT_VAL_NUM 

number of attribute values

Definition at line 162 of file Ogml.h.

◆ GraphType

This enumeration is used for identifying graph types.

Enumerator
graph 
clusterGraph 
compoundGraph 
corruptCompoundGraph 
GRAPH_TYPE_NUM 

number of graph types

Definition at line 290 of file Ogml.h.

◆ TagId

This enumeration is used for identifying OGML tags.

Enumerator
t_none 
t_bool 
t_composed 
t_constraint 
t_constraints 
t_content 
t_data 
t_default 
t_edge 
t_edgeRef 
t_edgeStyle 
t_edgeStyleTemplate 
t_edgeStyleTemplateRef 

tag template within tag edgeStyle/-Template

t_endpoint 
t_fill 
t_font 
t_graph 
t_graphStyle 
t_int 
t_label 
t_labelRef 
t_labelStyle 
t_labelStyleTemplate 
t_labelStyleTemplateRef 

tag template within tag labelStyle/-Template

t_layout 
t_line 
t_location 
t_node 
t_nodeRef 
t_nodeStyle 
t_nodeStyleTemplate 
t_nodeStyleTemplateRef 

tag template within tag nodeStyle/-Template

t_num 
t_ogml 
t_point 
t_port 
t_segment 
t_shape 
t_source 
t_sourceStyle 
t_string 
t_structure 
t_styles 
t_styleTemplates 
t_target 
t_targetStyle 
t_text 
t_image 
TAG_NUM 

number of tags

Definition at line 45 of file Ogml.h.

◆ ValidityState

This enumeration is used for encoding diverse validity stati of tags and attributes after parsing and validating a Xml file.

Enumerator
vs_tagEmptIncl 

empty tag inclusion

vs_idNotUnique 

id already exhausted

vs_idRefErr 

referenced id wasn't found or wrong type of referenced tag

vs_unexpTag 

tag unexpected

vs_unexpAtt 

attribute unexpected

vs_expTagNotFound 

expected tag not found

vs_expAttNotFound 

expected attribute not found

vs_attValueErr 

attribute-value error

vs_cardErr 

tag/attribute cardinality error

vs_invalid 

tag/attribute is invalid (no detailled information)

vs_valid 

tag/attribute is valid

Definition at line 273 of file Ogml.h.

Member Data Documentation

◆ s_attributeNames

const string ogdf::Ogml::s_attributeNames[ATT_NUM]
static

Stores the names of all OGML attributes.

Definition at line 158 of file Ogml.h.

◆ s_attributeValueNames

const string ogdf::Ogml::s_attributeValueNames[ATT_VAL_NUM]
static

Stores the names of all OGML values of attributes.

Definition at line 269 of file Ogml.h.

◆ s_graphTypeS

const string ogdf::Ogml::s_graphTypeS[GRAPH_TYPE_NUM]
static

Stores the names of graph types.

Definition at line 301 of file Ogml.h.

◆ s_tagNames

const string ogdf::Ogml::s_tagNames[TAG_NUM]
static

Stores the names of all OGML tags.

Definition at line 101 of file Ogml.h.


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