Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
API change fix: please define MSG_USE_DEPRECATED to get the broken MSG_mailbox_put_wi...
[simgrid.git] / include / xbt / graphxml.h
1 /* XML processor/application API for xbt/graphxml.dtd.
2  * Generated 2008/03/06 08:55:12.
3  *
4  * This program was generated with the FleXML XML processor generator.
5  * FleXML is Copyright (C) 1999-2005 Kristoffer Rose.  All rights reserved.
6  * FleXML is Copyright (C) 2003-2006 Martin Quinson.  All rights reserved.
7  * (Id: flexml.pl,v 1.63 2007/10/11 14:46:08 mquinson Exp).
8  * 
9  * There are two, intertwined parts to this program, part A and part B.
10  *
11  * Part A
12  * ------
13  * 
14  * Some parts, here collectively called "Part A", are found in the 
15  * FleXML package.  They are Copyright (C) 1999-2005 Kristoffer Rose
16  * and Copyright (C) 2003-2006 Martin Quinson. All rights reserved.
17  *
18  * You can redistribute, use, perform, display and/or modify "Part A"
19  * provided the following two conditions hold:
20  *
21  * 1. The program is distributed WITHOUT ANY WARRANTY from the author of
22  *    FleXML; without even the implied warranty of MERCHANTABILITY or
23  *    FITNESS FOR A PARTICULAR PURPOSE.
24  *
25  * 2. The program distribution conditions do not in any way affect the
26  *    distribution conditions of the FleXML system used to generate this
27  *    file or any version of FleXML derived from that system.
28  *
29  * Notice that these are explicit rights granted to you for files
30  * generated by the FleXML system.  For your rights in connection with
31  * the FleXML system itself please consult the GNU General Public License.
32  * 
33  * Part B
34  * ------
35  * 
36  * The other parts, here collectively called "Part B", and which came 
37  * from the DTD used by FleXML to generate this program, can be 
38  * distributed (or not, as the case may be) under the terms of whoever
39  * wrote them, provided these terms respect and obey the two conditions 
40  * above under the heading "Part A".
41  *
42  * The author of and contributors to FleXML specifically disclaim
43  * any copyright interest in "Part B", unless "Part B" was written 
44  * by the author of or contributors to FleXML.
45  * 
46  */
47
48 #ifndef _FLEXML_graphxml_H
49 #define _FLEXML_graphxml_H
50
51 /* XML application entry points. */
52 XBT_PUBLIC(void) STag_graphxml_graph(void);
53 XBT_PUBLIC(void) ETag_graphxml_graph(void);
54 XBT_PUBLIC(void) STag_graphxml_node(void);
55 XBT_PUBLIC(void) ETag_graphxml_node(void);
56 XBT_PUBLIC(void) STag_graphxml_edge(void);
57 XBT_PUBLIC(void) ETag_graphxml_edge(void);
58
59 /* XML application data. */
60      typedef int AT_graphxml_node_name;
61 #define AU_graphxml_node_name NULL
62      typedef int AT_graphxml_edge_source;
63 #define AU_graphxml_edge_source NULL
64      typedef int AT_graphxml_node_position_y;
65 #define AU_graphxml_node_position_y NULL
66      typedef int AT_graphxml_node_position_x;
67 #define AU_graphxml_node_position_x NULL
68      typedef int AT_graphxml_edge_data;
69 #define AU_graphxml_edge_data NULL
70      typedef int AT_graphxml_edge_target;
71 #define AU_graphxml_edge_target NULL
72      typedef enum { AU_graphxml_graph_isDirected,
73        A_graphxml_graph_isDirected_true,
74        A_graphxml_graph_isDirected_false
75      } AT_graphxml_graph_isDirected;
76      typedef int AT_graphxml_node_label;
77 #define AU_graphxml_node_label NULL
78      typedef int AT_graphxml_node_data;
79 #define AU_graphxml_node_data NULL
80      typedef int AT_graphxml_edge_label;
81 #define AU_graphxml_edge_label NULL
82      typedef int AT_graphxml_edge_length;
83 #define AU_graphxml_edge_length NULL
84      typedef int AT_graphxml_edge_name;
85 #define AU_graphxml_edge_name NULL
86
87 /* FleXML-provided data. */
88 XBT_PUBLIC_DATA(int) graphxml_pcdata_ix;
89 XBT_PUBLIC_DATA(char *) graphxml_bufferstack;
90 #define graphxml_pcdata (graphxml_bufferstack + graphxml_pcdata_ix)
91 XBT_PUBLIC_DATA(AT_graphxml_node_name) AX_graphxml_node_name;
92 #define A_graphxml_node_name (graphxml_bufferstack + AX_graphxml_node_name)
93 XBT_PUBLIC_DATA(AT_graphxml_edge_source) AX_graphxml_edge_source;
94 #define A_graphxml_edge_source (graphxml_bufferstack + AX_graphxml_edge_source)
95 XBT_PUBLIC_DATA(AT_graphxml_node_position_y) AX_graphxml_node_position_y;
96 #define A_graphxml_node_position_y (graphxml_bufferstack + AX_graphxml_node_position_y)
97 XBT_PUBLIC_DATA(AT_graphxml_node_position_x) AX_graphxml_node_position_x;
98 #define A_graphxml_node_position_x (graphxml_bufferstack + AX_graphxml_node_position_x)
99 XBT_PUBLIC_DATA(AT_graphxml_edge_data) AX_graphxml_edge_data;
100 #define A_graphxml_edge_data (graphxml_bufferstack + AX_graphxml_edge_data)
101 XBT_PUBLIC_DATA(AT_graphxml_edge_target) AX_graphxml_edge_target;
102 #define A_graphxml_edge_target (graphxml_bufferstack + AX_graphxml_edge_target)
103 XBT_PUBLIC_DATA(AT_graphxml_graph_isDirected) AX_graphxml_graph_isDirected;
104 #define A_graphxml_graph_isDirected AX_graphxml_graph_isDirected
105 XBT_PUBLIC_DATA(AT_graphxml_node_label) AX_graphxml_node_label;
106 #define A_graphxml_node_label (graphxml_bufferstack + AX_graphxml_node_label)
107 XBT_PUBLIC_DATA(AT_graphxml_node_data) AX_graphxml_node_data;
108 #define A_graphxml_node_data (graphxml_bufferstack + AX_graphxml_node_data)
109 XBT_PUBLIC_DATA(AT_graphxml_edge_label) AX_graphxml_edge_label;
110 #define A_graphxml_edge_label (graphxml_bufferstack + AX_graphxml_edge_label)
111 XBT_PUBLIC_DATA(AT_graphxml_edge_length) AX_graphxml_edge_length;
112 #define A_graphxml_edge_length (graphxml_bufferstack + AX_graphxml_edge_length)
113 XBT_PUBLIC_DATA(AT_graphxml_edge_name) AX_graphxml_edge_name;
114 #define A_graphxml_edge_name (graphxml_bufferstack + AX_graphxml_edge_name)
115
116 /* XML application utilities. */
117 XBT_PUBLIC(int) graphxml_element_context(int);
118
119 /* XML processor entry point. */
120 XBT_PUBLIC(int) yylex(void);
121
122 /* Flexml error handling function (useful only when -q flag passed to flexml) */
123      const char *graphxml_parse_err_msg(void);
124 #endif