6 * $Date: 2012-07-15 19:26:11 +0200 (So, 15. Jul 2012) $
7 ***************************************************************/
10 * \brief Contains diverse enumerations and string constants.
12 * \author Christian Wolf, Carsten Gutwenger
15 * This file is part of the Open Graph Drawing Framework (OGDF).
19 * See README.txt in the root directory of the OGDF installation for details.
22 * This program is free software; you can redistribute it and/or
23 * modify it under the terms of the GNU General Public License
24 * Version 2 or 3 as published by the Free Software Foundation;
25 * see the file LICENSE.txt included in the packaging of this file
29 * This program is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
35 * You should have received a copy of the GNU General Public
36 * License along with this program; if not, write to the Free
37 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
38 * Boston, MA 02110-1301, USA.
40 * \see http://www.gnu.org/copyleft/gpl.html
41 ***************************************************************/
44 #include <ogdf/fileformats/Ogml.h>
50 /// This vector contains the real names of all OGML tags
51 const String
Ogml::s_tagNames
[TAG_NUM
] =
104 // This vector contains the real names of all OGML attributes.
105 const String
Ogml::s_attributeNames
[ATT_NUM
] =
111 "defaultEdgeTemplate",
112 "defaultLabelTemplate",
113 "defaultNodeTemplate",
116 "id", // id attribute
117 "idRef", // attribute idRef of elements source, target, nodeRef, nodeStyle
118 "idRef", // attribute idRef of elements edgeRef, edgeStyle
119 "idRef", // attribute idRef of elements edgeRef, edgeStyle
120 "idRef", // attribute idRef of element endpoint
121 "idRef", // attribute idRef of element endpoint
122 "idRef", // attribute idRef of subelement template of element nodeStyle
123 "idRef", // attribute idRef of subelement template of element edgeStyle
124 "idRef", // attribute idRef of subelement template of element labelStyle
125 "idRef", // attribute idRef of subelement endpoint of element segment
127 "type", // attribute type of subelement line of tag nodeStyleTemplate
128 "type", // attribute type of subelement shape of tag nodeStyleTemplate
136 "type", // attribute type of subelements source-/targetStyle of tag edgeStyleTemplate
158 // This vector contains the real names of all OGML values of attributes.
159 const String
Ogml::s_attributeValueNames
[ATT_VAL_NUM
] = {
160 "any", // for any attributeValue
173 "esNoPen", // values for line style
206 "nodeId", // attribute idRef of elements source, target, nodeRef, nodeStyle
207 "edgeId", // attribute idRef of elements edgeRef, edgeStyle
208 "labelId", // attribute idRef of elements edgeRef, edgeStyle
209 "sourceId", // attribute idRef of element endpoint
210 "targetId", // attribute idRef of element endpoint
211 "nodeStyleTemplateId", // attribute idRef of subelement template of element nodeStyle
212 "edgeStyleTemplateId", // attribute idRef of subelement template of element edgeStyle
213 "labelStyleTemplateId", // attribute idRef of subelement template of element labelStyle
214 "pointId", // attribute idRef of subelement endpoint of element segment
250 "bpNone", // values for node patterns
262 "bpBackwardDiagonal",
278 "freeScale", // image-style
279 "fixScale", // image-style
280 "topLeft", // image-alignemnt
281 "topCenter", // image-alignemnt
282 "topRight", // image-alignemnt
283 "centerLeft", // image-alignemnt
284 // "center", // just defined // image-alignemnt
285 "centerRight", // image-alignemnt
286 "bottomLeft", // image-alignemnt
287 "bottomCenter", // image-alignemnt
288 "bottomRight", // image-alignemnt
295 static const String s_graphTypeS
[] =
300 "corruptCompoundGraph"