Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make file of trace usage test case
[simgrid.git] / include / surf / surfxml.h
1 /* XML processor/application API for surf/surfxml.dtd.
2  * Generated 2006/07/18 21:02:15.
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.53 2006/07/18 12:12:06 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_surfxml_H
49 #define _FLEXML_surfxml_H
50
51 /* XML application entry points. */
52 extern void STag_surfxml_platform_description(void);
53 extern void ETag_surfxml_platform_description(void);
54 extern void STag_surfxml_include(void);
55 extern void ETag_surfxml_include(void);
56 extern void STag_surfxml_cpu(void);
57 extern void ETag_surfxml_cpu(void);
58 extern void STag_surfxml_network_link(void);
59 extern void ETag_surfxml_network_link(void);
60 extern void STag_surfxml_route(void);
61 extern void ETag_surfxml_route(void);
62 extern void STag_surfxml_route_element(void);
63 extern void ETag_surfxml_route_element(void);
64 extern void STag_surfxml_process(void);
65 extern void ETag_surfxml_process(void);
66 extern void STag_surfxml_argument(void);
67 extern void ETag_surfxml_argument(void);
68
69 /* XML application data. */
70 typedef const char* AT_surfxml_network_link_bandwidth;
71 #define AU_surfxml_network_link_bandwidth NULL
72 typedef const char* AT_surfxml_process_host;
73 #define AU_surfxml_process_host NULL
74 typedef const char* AT_surfxml_network_link_latency_file;
75 #define AU_surfxml_network_link_latency_file NULL
76 typedef const char* AT_surfxml_route_impact_on_dst_with_other_send;
77 #define AU_surfxml_route_impact_on_dst_with_other_send NULL
78 typedef const char* AT_surfxml_cpu_interference_send_recv;
79 #define AU_surfxml_cpu_interference_send_recv NULL
80 typedef const char* AT_surfxml_route_impact_on_dst;
81 #define AU_surfxml_route_impact_on_dst NULL
82 typedef const char* AT_surfxml_platform_description_version;
83 #define AU_surfxml_platform_description_version NULL
84 typedef const char* AT_surfxml_route_impact_on_src_with_other_recv;
85 #define AU_surfxml_route_impact_on_src_with_other_recv NULL
86 typedef const char* AT_surfxml_route_element_name;
87 #define AU_surfxml_route_element_name NULL
88 typedef const char* AT_surfxml_process_start_time;
89 #define AU_surfxml_process_start_time NULL
90 typedef const char* AT_surfxml_process_function;
91 #define AU_surfxml_process_function NULL
92 typedef enum { AU_surfxml_cpu_state, A_surfxml_cpu_state_ON,A_surfxml_cpu_state_OFF } AT_surfxml_cpu_state;
93 typedef const char* AT_surfxml_cpu_interference_send;
94 #define AU_surfxml_cpu_interference_send NULL
95 typedef const char* AT_surfxml_network_link_bandwidth_file;
96 #define AU_surfxml_network_link_bandwidth_file NULL
97 typedef const char* AT_surfxml_cpu_name;
98 #define AU_surfxml_cpu_name NULL
99 typedef const char* AT_surfxml_process_kill_time;
100 #define AU_surfxml_process_kill_time NULL
101 typedef enum { AU_surfxml_network_link_state, A_surfxml_network_link_state_ON,A_surfxml_network_link_state_OFF } AT_surfxml_network_link_state;
102 typedef const char* AT_surfxml_cpu_availability_file;
103 #define AU_surfxml_cpu_availability_file NULL
104 typedef const char* AT_surfxml_argument_value;
105 #define AU_surfxml_argument_value NULL
106 typedef const char* AT_surfxml_route_src;
107 #define AU_surfxml_route_src NULL
108 typedef const char* AT_surfxml_route_impact_on_src;
109 #define AU_surfxml_route_impact_on_src NULL
110 typedef const char* AT_surfxml_cpu_max_outgoing_rate;
111 #define AU_surfxml_cpu_max_outgoing_rate NULL
112 typedef const char* AT_surfxml_cpu_availability;
113 #define AU_surfxml_cpu_availability NULL
114 typedef const char* AT_surfxml_cpu_interference_recv;
115 #define AU_surfxml_cpu_interference_recv NULL
116 typedef const char* AT_surfxml_network_link_name;
117 #define AU_surfxml_network_link_name NULL
118 typedef const char* AT_surfxml_cpu_power;
119 #define AU_surfxml_cpu_power NULL
120 typedef const char* AT_surfxml_include_file;
121 #define AU_surfxml_include_file NULL
122 typedef enum { AU_surfxml_network_link_sharing_policy, A_surfxml_network_link_sharing_policy_SHARED,A_surfxml_network_link_sharing_policy_FATPIPE } AT_surfxml_network_link_sharing_policy;
123 typedef const char* AT_surfxml_route_dst;
124 #define AU_surfxml_route_dst NULL
125 typedef const char* AT_surfxml_network_link_latency;
126 #define AU_surfxml_network_link_latency NULL
127 typedef const char* AT_surfxml_cpu_state_file;
128 #define AU_surfxml_cpu_state_file NULL
129 typedef const char* AT_surfxml_network_link_state_file;
130 #define AU_surfxml_network_link_state_file NULL
131
132 /* FleXML-provided data. */
133 extern const char* surfxml_pcdata;
134 extern AT_surfxml_network_link_bandwidth A_surfxml_network_link_bandwidth;
135 extern AT_surfxml_process_host A_surfxml_process_host;
136 extern AT_surfxml_network_link_latency_file A_surfxml_network_link_latency_file;
137 extern AT_surfxml_route_impact_on_dst_with_other_send A_surfxml_route_impact_on_dst_with_other_send;
138 extern AT_surfxml_cpu_interference_send_recv A_surfxml_cpu_interference_send_recv;
139 extern AT_surfxml_route_impact_on_dst A_surfxml_route_impact_on_dst;
140 extern AT_surfxml_platform_description_version A_surfxml_platform_description_version;
141 extern AT_surfxml_route_impact_on_src_with_other_recv A_surfxml_route_impact_on_src_with_other_recv;
142 extern AT_surfxml_route_element_name A_surfxml_route_element_name;
143 extern AT_surfxml_process_start_time A_surfxml_process_start_time;
144 extern AT_surfxml_process_function A_surfxml_process_function;
145 extern AT_surfxml_cpu_state A_surfxml_cpu_state;
146 extern AT_surfxml_cpu_interference_send A_surfxml_cpu_interference_send;
147 extern AT_surfxml_network_link_bandwidth_file A_surfxml_network_link_bandwidth_file;
148 extern AT_surfxml_cpu_name A_surfxml_cpu_name;
149 extern AT_surfxml_process_kill_time A_surfxml_process_kill_time;
150 extern AT_surfxml_network_link_state A_surfxml_network_link_state;
151 extern AT_surfxml_cpu_availability_file A_surfxml_cpu_availability_file;
152 extern AT_surfxml_argument_value A_surfxml_argument_value;
153 extern AT_surfxml_route_src A_surfxml_route_src;
154 extern AT_surfxml_route_impact_on_src A_surfxml_route_impact_on_src;
155 extern AT_surfxml_cpu_max_outgoing_rate A_surfxml_cpu_max_outgoing_rate;
156 extern AT_surfxml_cpu_availability A_surfxml_cpu_availability;
157 extern AT_surfxml_cpu_interference_recv A_surfxml_cpu_interference_recv;
158 extern AT_surfxml_network_link_name A_surfxml_network_link_name;
159 extern AT_surfxml_cpu_power A_surfxml_cpu_power;
160 extern AT_surfxml_include_file A_surfxml_include_file;
161 extern AT_surfxml_network_link_sharing_policy A_surfxml_network_link_sharing_policy;
162 extern AT_surfxml_route_dst A_surfxml_route_dst;
163 extern AT_surfxml_network_link_latency A_surfxml_network_link_latency;
164 extern AT_surfxml_cpu_state_file A_surfxml_cpu_state_file;
165 extern AT_surfxml_network_link_state_file A_surfxml_network_link_state_file;
166
167 /* XML application utilities. */
168 extern int surfxml_element_context(int);
169
170 /* XML processor entry point. */
171 extern int yylex(void);
172
173 /* Flexml error handling function (useful only when -q flag passed to flexml) */
174 const char * surfxml_parse_err_msg(void);
175 #endif