1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * INTERFACE: Fortran Rappture Library Stub Headers |
---|
4 | * |
---|
5 | * ====================================================================== |
---|
6 | * AUTHOR: Derrick Kearney, Purdue University |
---|
7 | * Copyright (c) 2004-2005 Purdue Research Foundation |
---|
8 | * |
---|
9 | * See the file "license.terms" for information on usage and |
---|
10 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
11 | * ====================================================================== |
---|
12 | */ |
---|
13 | |
---|
14 | #ifdef __cplusplus |
---|
15 | extern "C" { |
---|
16 | #endif |
---|
17 | |
---|
18 | |
---|
19 | /**********************************************************/ |
---|
20 | // INTERFACE FUNCTIONS - ONE UNDERSCORE |
---|
21 | |
---|
22 | void rp_init_(); |
---|
23 | |
---|
24 | int rp_lib_ ( const char* filePath, int filePath_len ); |
---|
25 | |
---|
26 | void rp_lib_element_comp_ ( int* handle, |
---|
27 | char* path, |
---|
28 | char* retText, |
---|
29 | int path_len, |
---|
30 | int retText_len ); |
---|
31 | |
---|
32 | void rp_lib_element_id_ ( int* handle, |
---|
33 | char* path, |
---|
34 | char* retText, |
---|
35 | int path_len, |
---|
36 | int retText_len ); |
---|
37 | |
---|
38 | void rp_lib_element_type_ ( int* handle, |
---|
39 | char* path, |
---|
40 | char* retText, |
---|
41 | int path_len, |
---|
42 | int retText_len ); |
---|
43 | |
---|
44 | int rp_lib_element_obj_ ( int* handle, |
---|
45 | char* path, |
---|
46 | int path_len ); |
---|
47 | |
---|
48 | int rp_lib_child_num_ ( int* handle, |
---|
49 | char* path, |
---|
50 | int* childHandle, |
---|
51 | int path_len); |
---|
52 | |
---|
53 | int rp_lib_children_ ( int* handle, /* integer handle of library */ |
---|
54 | char* path, /* search path of the xml */ |
---|
55 | int* childHandle, /*int handle of last returned child*/ |
---|
56 | int path_len /*length of the search path buffer*/ |
---|
57 | ); |
---|
58 | |
---|
59 | |
---|
60 | void rp_lib_get_ ( int* handle, |
---|
61 | char* path, |
---|
62 | char* retText, |
---|
63 | int path_len, |
---|
64 | int retText_len ); |
---|
65 | |
---|
66 | double rp_lib_get_double_ ( int* handle, |
---|
67 | char* path, |
---|
68 | int path_len); |
---|
69 | |
---|
70 | void rp_lib_put_str_ ( int* handle, |
---|
71 | char* path, |
---|
72 | char* value, |
---|
73 | int* append, |
---|
74 | int path_len, |
---|
75 | int value_len ); |
---|
76 | |
---|
77 | void rp_lib_put_id_str_ ( int* handle, |
---|
78 | char* path, |
---|
79 | char* value, |
---|
80 | char* id, |
---|
81 | int* append, |
---|
82 | int path_len, |
---|
83 | int value_len, |
---|
84 | int id_len ); |
---|
85 | |
---|
86 | void rp_lib_put_obj_ ( int* handle, |
---|
87 | char* path, |
---|
88 | int* valHandle, |
---|
89 | int* append, |
---|
90 | int path_len ); |
---|
91 | |
---|
92 | void rp_lib_put_id_obj_ ( int* handle, |
---|
93 | char* path, |
---|
94 | int* valHandle, |
---|
95 | char* id, |
---|
96 | int* append, |
---|
97 | int path_len, |
---|
98 | int id_len ); |
---|
99 | |
---|
100 | int rp_lib_remove_ ( int* handle, |
---|
101 | char* path, |
---|
102 | int path_len); |
---|
103 | |
---|
104 | int rp_lib_xml_len_( int* handle); |
---|
105 | |
---|
106 | void rp_lib_xml_( int* handle, |
---|
107 | char* retText, |
---|
108 | int retText_len); |
---|
109 | |
---|
110 | int rp_lib_write_xml_( int* handle, |
---|
111 | char* outFile, |
---|
112 | int outFile_len); |
---|
113 | |
---|
114 | void rp_lib_node_comp_ ( int* handle, |
---|
115 | char* retText, |
---|
116 | int retText_len); |
---|
117 | |
---|
118 | void rp_lib_node_type_ ( int* handle, |
---|
119 | char* retText, |
---|
120 | int retText_len); |
---|
121 | |
---|
122 | void rp_lib_node_id_ ( int* handle, |
---|
123 | char* retText, |
---|
124 | int retText_len); |
---|
125 | |
---|
126 | void rp_result_( int* handle ); |
---|
127 | |
---|
128 | |
---|
129 | /**********************************************************/ |
---|
130 | |
---|
131 | void rp_init__(); |
---|
132 | |
---|
133 | int rp_lib__ ( const char* filePath, int filePath_len ); |
---|
134 | |
---|
135 | void rp_lib_element_comp__ (int* handle, |
---|
136 | char* path, |
---|
137 | char* retText, |
---|
138 | int path_len, |
---|
139 | int retText_len ); |
---|
140 | |
---|
141 | void rp_lib_element_id__ ( int* handle, |
---|
142 | char* path, |
---|
143 | char* retText, |
---|
144 | int path_len, |
---|
145 | int retText_len ); |
---|
146 | |
---|
147 | void rp_lib_element_type__ (int* handle, |
---|
148 | char* path, |
---|
149 | char* retText, |
---|
150 | int path_len, |
---|
151 | int retText_len ); |
---|
152 | |
---|
153 | int rp_lib_element_obj__ ( int* handle, |
---|
154 | char* path, |
---|
155 | int path_len ); |
---|
156 | |
---|
157 | int rp_lib_child_num__ ( int* handle, |
---|
158 | char* path, |
---|
159 | int* childHandle, |
---|
160 | int path_len); |
---|
161 | |
---|
162 | int rp_lib_children__ ( int* handle, /* integer handle of library */ |
---|
163 | char* path, /* search path of the xml */ |
---|
164 | int* childHandle, /*int handle of last returned child*/ |
---|
165 | int path_len /*length of the search path buffer*/ |
---|
166 | ); |
---|
167 | |
---|
168 | |
---|
169 | void rp_lib_get__ ( int* handle, |
---|
170 | char* path, |
---|
171 | char* retText, |
---|
172 | int path_len, |
---|
173 | int retText_len ); |
---|
174 | |
---|
175 | double rp_lib_get_double__ (int* handle, |
---|
176 | char* path, |
---|
177 | int path_len); |
---|
178 | |
---|
179 | void rp_lib_put_str__ ( int* handle, |
---|
180 | char* path, |
---|
181 | char* value, |
---|
182 | int* append, |
---|
183 | int path_len, |
---|
184 | int value_len ); |
---|
185 | |
---|
186 | void rp_lib_put_id_str__ ( int* handle, |
---|
187 | char* path, |
---|
188 | char* value, |
---|
189 | char* id, |
---|
190 | int* append, |
---|
191 | int path_len, |
---|
192 | int value_len, |
---|
193 | int id_len ); |
---|
194 | |
---|
195 | void rp_lib_put_obj__ ( int* handle, |
---|
196 | char* path, |
---|
197 | int* valHandle, |
---|
198 | int* append, |
---|
199 | int path_len ); |
---|
200 | |
---|
201 | void rp_lib_put_id_obj__ ( int* handle, |
---|
202 | char* path, |
---|
203 | int* valHandle, |
---|
204 | char* id, |
---|
205 | int* append, |
---|
206 | int path_len, |
---|
207 | int id_len ); |
---|
208 | |
---|
209 | int rp_lib_remove__ ( int* handle, |
---|
210 | char* path, |
---|
211 | int path_len); |
---|
212 | |
---|
213 | int rp_lib_xml_len__( int* handle); |
---|
214 | |
---|
215 | void rp_lib_xml__( int* handle, |
---|
216 | char* retText, |
---|
217 | int retText_len); |
---|
218 | |
---|
219 | int rp_lib_write_xml__( int* handle, |
---|
220 | char* outFile, |
---|
221 | int outFile_len); |
---|
222 | |
---|
223 | void rp_lib_node_comp__ ( int* handle, |
---|
224 | char* retText, |
---|
225 | int retText_len); |
---|
226 | |
---|
227 | void rp_lib_node_type__ ( int* handle, |
---|
228 | char* retText, |
---|
229 | int retText_len); |
---|
230 | |
---|
231 | void rp_lib_node_id__ ( int* handle, |
---|
232 | char* retText, |
---|
233 | int retText_len); |
---|
234 | |
---|
235 | void rp_result__( int* handle ); |
---|
236 | |
---|
237 | |
---|
238 | /**********************************************************/ |
---|
239 | // INTERFACE STUB FUNCTIONS - ALL CAPS |
---|
240 | |
---|
241 | void RP_INIT(); |
---|
242 | |
---|
243 | int RP_LIB ( const char* filePath, int filePath_len ); |
---|
244 | |
---|
245 | void RP_LIB_ELEMENT_COMP ( int* handle, |
---|
246 | char* path, |
---|
247 | char* retText, |
---|
248 | int path_len, |
---|
249 | int retText_len ); |
---|
250 | |
---|
251 | void RP_LIB_ELEMENT_ID( int* handle, |
---|
252 | char* path, |
---|
253 | char* retText, |
---|
254 | int path_len, |
---|
255 | int retText_len ); |
---|
256 | |
---|
257 | void RP_LIB_ELEMENT_TYPE ( int* handle, |
---|
258 | char* path, |
---|
259 | char* retText, |
---|
260 | int path_len, |
---|
261 | int retText_len ); |
---|
262 | |
---|
263 | int RP_LIB_ELEMENT_OBJ ( int* handle, |
---|
264 | char* path, |
---|
265 | int path_len ); |
---|
266 | |
---|
267 | int RP_LIB_CHILD_NUM ( int* handle, |
---|
268 | char* path, |
---|
269 | int* childHandle, |
---|
270 | int path_len); |
---|
271 | |
---|
272 | int RP_LIB_CHILDREN ( int* handle, /* integer handle of library */ |
---|
273 | char* path, /* search path of the xml */ |
---|
274 | int* childHandle, /*int handle of last returned child*/ |
---|
275 | int path_len /*length of the search path buffer*/ |
---|
276 | ); |
---|
277 | |
---|
278 | |
---|
279 | void RP_LIB_GET ( int* handle, |
---|
280 | char* path, |
---|
281 | char* retText, |
---|
282 | int path_len, |
---|
283 | int retText_len ); |
---|
284 | |
---|
285 | double RP_LIB_GET_DOUBLE ( int* handle, |
---|
286 | char* path, |
---|
287 | int path_len); |
---|
288 | |
---|
289 | void RP_LIB_PUT_STR ( int* handle, |
---|
290 | char* path, |
---|
291 | char* value, |
---|
292 | int* append, |
---|
293 | int path_len, |
---|
294 | int value_len ); |
---|
295 | |
---|
296 | void RP_LIB_PUT_ID_STR ( int* handle, |
---|
297 | char* path, |
---|
298 | char* value, |
---|
299 | char* id, |
---|
300 | int* append, |
---|
301 | int path_len, |
---|
302 | int value_len, |
---|
303 | int id_len ); |
---|
304 | |
---|
305 | void RP_LIB_PUT_OBJ ( int* handle, |
---|
306 | char* path, |
---|
307 | int* valHandle, |
---|
308 | int* append, |
---|
309 | int path_len ); |
---|
310 | |
---|
311 | void RP_LIB_PUT_ID_OBJ ( int* handle, |
---|
312 | char* path, |
---|
313 | int* valHandle, |
---|
314 | char* id, |
---|
315 | int* append, |
---|
316 | int path_len, |
---|
317 | int id_len ); |
---|
318 | |
---|
319 | int RP_LIB_REMOVE ( int* handle, |
---|
320 | char* path, |
---|
321 | int path_len); |
---|
322 | |
---|
323 | int RP_LIB_XML_LEN( int* handle); |
---|
324 | |
---|
325 | void RP_LIB_XML( int* handle, |
---|
326 | char* retText, |
---|
327 | int retText_len); |
---|
328 | |
---|
329 | int RP_LIB_WRITE_XML( int* handle, |
---|
330 | char* outFile, |
---|
331 | int outFile_len); |
---|
332 | |
---|
333 | void RP_LIB_NODE_COMP ( int* handle, |
---|
334 | char* retText, |
---|
335 | int retText_len); |
---|
336 | |
---|
337 | void RP_LIB_NODE_TYPE ( int* handle, |
---|
338 | char* retText, |
---|
339 | int retText_len); |
---|
340 | |
---|
341 | void RP_LIB_NODE_ID ( int* handle, |
---|
342 | char* retText, |
---|
343 | int retText_len); |
---|
344 | |
---|
345 | void RP_RESULT( int* handle ); |
---|
346 | |
---|
347 | |
---|
348 | /**********************************************************/ |
---|
349 | /**********************************************************/ |
---|
350 | |
---|
351 | #ifdef __cplusplus |
---|
352 | } |
---|
353 | #endif |
---|