[84] | 1 | /* |
---|
| 2 | * ---------------------------------------------------------------------- |
---|
| 3 | * INTERFACE: Fortran Rappture Library Stub Headers |
---|
| 4 | * |
---|
| 5 | * ====================================================================== |
---|
| 6 | * AUTHOR: Derrick Kearney, Purdue University |
---|
[591] | 7 | * Copyright (c) 2004-2007 Purdue Research Foundation |
---|
[115] | 8 | * |
---|
| 9 | * See the file "license.terms" for information on usage and |
---|
| 10 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
[84] | 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 | |
---|
[125] | 66 | void rp_lib_get_str_ ( int* handle, |
---|
| 67 | char* path, |
---|
| 68 | char* retText, |
---|
| 69 | int path_len, |
---|
| 70 | int retText_len ); |
---|
| 71 | |
---|
[84] | 72 | double rp_lib_get_double_ ( int* handle, |
---|
| 73 | char* path, |
---|
| 74 | int path_len); |
---|
| 75 | |
---|
[496] | 76 | int rp_lib_get_integer_ ( int* handle, |
---|
| 77 | char* path, |
---|
| 78 | int path_len); |
---|
| 79 | |
---|
| 80 | int rp_lib_get_boolean_ ( int* handle, |
---|
| 81 | char* path, |
---|
| 82 | int path_len); |
---|
| 83 | |
---|
[84] | 84 | void rp_lib_put_str_ ( int* handle, |
---|
| 85 | char* path, |
---|
| 86 | char* value, |
---|
| 87 | int* append, |
---|
| 88 | int path_len, |
---|
| 89 | int value_len ); |
---|
| 90 | |
---|
| 91 | void rp_lib_put_id_str_ ( int* handle, |
---|
| 92 | char* path, |
---|
| 93 | char* value, |
---|
| 94 | char* id, |
---|
| 95 | int* append, |
---|
| 96 | int path_len, |
---|
| 97 | int value_len, |
---|
| 98 | int id_len ); |
---|
| 99 | |
---|
[591] | 100 | void rp_lib_put_data_ ( int* handle, |
---|
| 101 | char* path, |
---|
| 102 | char* bytes, |
---|
| 103 | int* nbytes, |
---|
| 104 | int* append, |
---|
| 105 | int path_len, |
---|
| 106 | int bytes_len ); |
---|
| 107 | |
---|
| 108 | void rp_lib_put_file_ ( int* handle, |
---|
| 109 | char* path, |
---|
| 110 | char* fileName, |
---|
[597] | 111 | int* compress, |
---|
[591] | 112 | int* append, |
---|
| 113 | int path_len, |
---|
| 114 | int fileName_len ); |
---|
| 115 | |
---|
| 116 | /* |
---|
[84] | 117 | void rp_lib_put_obj_ ( int* handle, |
---|
| 118 | char* path, |
---|
| 119 | int* valHandle, |
---|
| 120 | int* append, |
---|
| 121 | int path_len ); |
---|
| 122 | |
---|
| 123 | void rp_lib_put_id_obj_ ( int* handle, |
---|
| 124 | char* path, |
---|
| 125 | int* valHandle, |
---|
| 126 | char* id, |
---|
| 127 | int* append, |
---|
| 128 | int path_len, |
---|
| 129 | int id_len ); |
---|
[591] | 130 | */ |
---|
[84] | 131 | |
---|
| 132 | int rp_lib_remove_ ( int* handle, |
---|
| 133 | char* path, |
---|
| 134 | int path_len); |
---|
| 135 | |
---|
| 136 | int rp_lib_xml_len_( int* handle); |
---|
| 137 | |
---|
| 138 | void rp_lib_xml_( int* handle, |
---|
| 139 | char* retText, |
---|
| 140 | int retText_len); |
---|
| 141 | |
---|
| 142 | int rp_lib_write_xml_( int* handle, |
---|
| 143 | char* outFile, |
---|
| 144 | int outFile_len); |
---|
| 145 | |
---|
| 146 | void rp_lib_node_comp_ ( int* handle, |
---|
| 147 | char* retText, |
---|
| 148 | int retText_len); |
---|
| 149 | |
---|
| 150 | void rp_lib_node_type_ ( int* handle, |
---|
| 151 | char* retText, |
---|
| 152 | int retText_len); |
---|
| 153 | |
---|
| 154 | void rp_lib_node_id_ ( int* handle, |
---|
| 155 | char* retText, |
---|
| 156 | int retText_len); |
---|
| 157 | |
---|
| 158 | void rp_result_( int* handle ); |
---|
| 159 | |
---|
| 160 | |
---|
| 161 | /**********************************************************/ |
---|
| 162 | |
---|
| 163 | void rp_init__(); |
---|
| 164 | |
---|
| 165 | int rp_lib__ ( const char* filePath, int filePath_len ); |
---|
| 166 | |
---|
| 167 | void rp_lib_element_comp__ (int* handle, |
---|
| 168 | char* path, |
---|
| 169 | char* retText, |
---|
| 170 | int path_len, |
---|
| 171 | int retText_len ); |
---|
| 172 | |
---|
| 173 | void rp_lib_element_id__ ( int* handle, |
---|
| 174 | char* path, |
---|
| 175 | char* retText, |
---|
| 176 | int path_len, |
---|
| 177 | int retText_len ); |
---|
| 178 | |
---|
| 179 | void rp_lib_element_type__ (int* handle, |
---|
| 180 | char* path, |
---|
| 181 | char* retText, |
---|
| 182 | int path_len, |
---|
| 183 | int retText_len ); |
---|
| 184 | |
---|
| 185 | int rp_lib_element_obj__ ( int* handle, |
---|
| 186 | char* path, |
---|
| 187 | int path_len ); |
---|
| 188 | |
---|
| 189 | int rp_lib_child_num__ ( int* handle, |
---|
| 190 | char* path, |
---|
| 191 | int* childHandle, |
---|
| 192 | int path_len); |
---|
| 193 | |
---|
| 194 | int rp_lib_children__ ( int* handle, /* integer handle of library */ |
---|
| 195 | char* path, /* search path of the xml */ |
---|
| 196 | int* childHandle, /*int handle of last returned child*/ |
---|
| 197 | int path_len /*length of the search path buffer*/ |
---|
| 198 | ); |
---|
| 199 | |
---|
| 200 | |
---|
| 201 | void rp_lib_get__ ( int* handle, |
---|
| 202 | char* path, |
---|
| 203 | char* retText, |
---|
| 204 | int path_len, |
---|
| 205 | int retText_len ); |
---|
| 206 | |
---|
[125] | 207 | void rp_lib_get_str__ ( int* handle, |
---|
| 208 | char* path, |
---|
| 209 | char* retText, |
---|
| 210 | int path_len, |
---|
| 211 | int retText_len ); |
---|
| 212 | |
---|
[84] | 213 | double rp_lib_get_double__ (int* handle, |
---|
| 214 | char* path, |
---|
| 215 | int path_len); |
---|
| 216 | |
---|
[496] | 217 | int rp_lib_get_integer__ ( int* handle, |
---|
| 218 | char* path, |
---|
| 219 | int path_len); |
---|
| 220 | |
---|
| 221 | int rp_lib_get_boolean__ ( int* handle, |
---|
| 222 | char* path, |
---|
| 223 | int path_len); |
---|
| 224 | |
---|
[84] | 225 | void rp_lib_put_str__ ( int* handle, |
---|
| 226 | char* path, |
---|
| 227 | char* value, |
---|
| 228 | int* append, |
---|
| 229 | int path_len, |
---|
| 230 | int value_len ); |
---|
| 231 | |
---|
| 232 | void rp_lib_put_id_str__ ( int* handle, |
---|
| 233 | char* path, |
---|
| 234 | char* value, |
---|
| 235 | char* id, |
---|
| 236 | int* append, |
---|
| 237 | int path_len, |
---|
| 238 | int value_len, |
---|
| 239 | int id_len ); |
---|
| 240 | |
---|
[591] | 241 | void rp_lib_put_data__ ( int* handle, |
---|
| 242 | char* path, |
---|
| 243 | char* bytes, |
---|
| 244 | int* nbytes, |
---|
| 245 | int* append, |
---|
| 246 | int path_len, |
---|
| 247 | int bytes_len ); |
---|
| 248 | |
---|
| 249 | void rp_lib_put_file__ ( int* handle, |
---|
| 250 | char* path, |
---|
| 251 | char* fileName, |
---|
[597] | 252 | int* compress, |
---|
[591] | 253 | int* append, |
---|
| 254 | int path_len, |
---|
| 255 | int fileName_len ); |
---|
| 256 | |
---|
| 257 | /* |
---|
[84] | 258 | void rp_lib_put_obj__ ( int* handle, |
---|
| 259 | char* path, |
---|
| 260 | int* valHandle, |
---|
| 261 | int* append, |
---|
| 262 | int path_len ); |
---|
| 263 | |
---|
| 264 | void rp_lib_put_id_obj__ ( int* handle, |
---|
| 265 | char* path, |
---|
| 266 | int* valHandle, |
---|
| 267 | char* id, |
---|
| 268 | int* append, |
---|
| 269 | int path_len, |
---|
| 270 | int id_len ); |
---|
[591] | 271 | */ |
---|
[84] | 272 | |
---|
| 273 | int rp_lib_remove__ ( int* handle, |
---|
| 274 | char* path, |
---|
| 275 | int path_len); |
---|
| 276 | |
---|
| 277 | int rp_lib_xml_len__( int* handle); |
---|
| 278 | |
---|
| 279 | void rp_lib_xml__( int* handle, |
---|
| 280 | char* retText, |
---|
| 281 | int retText_len); |
---|
| 282 | |
---|
| 283 | int rp_lib_write_xml__( int* handle, |
---|
| 284 | char* outFile, |
---|
| 285 | int outFile_len); |
---|
| 286 | |
---|
| 287 | void rp_lib_node_comp__ ( int* handle, |
---|
| 288 | char* retText, |
---|
| 289 | int retText_len); |
---|
| 290 | |
---|
| 291 | void rp_lib_node_type__ ( int* handle, |
---|
| 292 | char* retText, |
---|
| 293 | int retText_len); |
---|
| 294 | |
---|
| 295 | void rp_lib_node_id__ ( int* handle, |
---|
| 296 | char* retText, |
---|
| 297 | int retText_len); |
---|
| 298 | |
---|
| 299 | void rp_result__( int* handle ); |
---|
| 300 | |
---|
| 301 | |
---|
| 302 | /**********************************************************/ |
---|
| 303 | // INTERFACE STUB FUNCTIONS - ALL CAPS |
---|
| 304 | |
---|
| 305 | void RP_INIT(); |
---|
| 306 | |
---|
| 307 | int RP_LIB ( const char* filePath, int filePath_len ); |
---|
| 308 | |
---|
| 309 | void RP_LIB_ELEMENT_COMP ( int* handle, |
---|
| 310 | char* path, |
---|
| 311 | char* retText, |
---|
| 312 | int path_len, |
---|
| 313 | int retText_len ); |
---|
| 314 | |
---|
| 315 | void RP_LIB_ELEMENT_ID( int* handle, |
---|
| 316 | char* path, |
---|
| 317 | char* retText, |
---|
| 318 | int path_len, |
---|
| 319 | int retText_len ); |
---|
| 320 | |
---|
| 321 | void RP_LIB_ELEMENT_TYPE ( int* handle, |
---|
| 322 | char* path, |
---|
| 323 | char* retText, |
---|
| 324 | int path_len, |
---|
| 325 | int retText_len ); |
---|
| 326 | |
---|
| 327 | int RP_LIB_ELEMENT_OBJ ( int* handle, |
---|
| 328 | char* path, |
---|
| 329 | int path_len ); |
---|
| 330 | |
---|
| 331 | int RP_LIB_CHILD_NUM ( int* handle, |
---|
| 332 | char* path, |
---|
| 333 | int* childHandle, |
---|
| 334 | int path_len); |
---|
| 335 | |
---|
| 336 | int RP_LIB_CHILDREN ( int* handle, /* integer handle of library */ |
---|
| 337 | char* path, /* search path of the xml */ |
---|
| 338 | int* childHandle, /*int handle of last returned child*/ |
---|
| 339 | int path_len /*length of the search path buffer*/ |
---|
| 340 | ); |
---|
| 341 | |
---|
| 342 | |
---|
| 343 | void RP_LIB_GET ( int* handle, |
---|
| 344 | char* path, |
---|
| 345 | char* retText, |
---|
| 346 | int path_len, |
---|
| 347 | int retText_len ); |
---|
| 348 | |
---|
[125] | 349 | void RP_LIB_GET_STR ( int* handle, |
---|
| 350 | char* path, |
---|
| 351 | char* retText, |
---|
| 352 | int path_len, |
---|
| 353 | int retText_len ); |
---|
| 354 | |
---|
[84] | 355 | double RP_LIB_GET_DOUBLE ( int* handle, |
---|
| 356 | char* path, |
---|
| 357 | int path_len); |
---|
| 358 | |
---|
[496] | 359 | int RP_LIB_GET_INTEGER ( int* handle, |
---|
| 360 | char* path, |
---|
| 361 | int path_len); |
---|
| 362 | |
---|
| 363 | int RP_LIB_GET_BOOLEAN ( int* handle, |
---|
| 364 | char* path, |
---|
| 365 | int path_len); |
---|
| 366 | |
---|
[84] | 367 | void RP_LIB_PUT_STR ( int* handle, |
---|
| 368 | char* path, |
---|
| 369 | char* value, |
---|
| 370 | int* append, |
---|
| 371 | int path_len, |
---|
| 372 | int value_len ); |
---|
| 373 | |
---|
| 374 | void RP_LIB_PUT_ID_STR ( int* handle, |
---|
| 375 | char* path, |
---|
| 376 | char* value, |
---|
| 377 | char* id, |
---|
| 378 | int* append, |
---|
| 379 | int path_len, |
---|
| 380 | int value_len, |
---|
| 381 | int id_len ); |
---|
| 382 | |
---|
[591] | 383 | void RP_LIB_PUT_DATA ( int* handle, |
---|
| 384 | char* path, |
---|
| 385 | char* bytes, |
---|
| 386 | int* nbytes, |
---|
| 387 | int* append, |
---|
| 388 | int path_len, |
---|
| 389 | int bytes_len ); |
---|
| 390 | |
---|
| 391 | void RP_LIB_PUT_FILE ( int* handle, |
---|
| 392 | char* path, |
---|
| 393 | char* fileName, |
---|
[597] | 394 | int* compress, |
---|
[591] | 395 | int* append, |
---|
| 396 | int path_len, |
---|
| 397 | int fileName_len ); |
---|
| 398 | /* |
---|
[84] | 399 | void RP_LIB_PUT_OBJ ( int* handle, |
---|
| 400 | char* path, |
---|
| 401 | int* valHandle, |
---|
| 402 | int* append, |
---|
| 403 | int path_len ); |
---|
| 404 | |
---|
| 405 | void RP_LIB_PUT_ID_OBJ ( int* handle, |
---|
| 406 | char* path, |
---|
| 407 | int* valHandle, |
---|
| 408 | char* id, |
---|
| 409 | int* append, |
---|
| 410 | int path_len, |
---|
| 411 | int id_len ); |
---|
[591] | 412 | */ |
---|
[84] | 413 | |
---|
| 414 | int RP_LIB_REMOVE ( int* handle, |
---|
| 415 | char* path, |
---|
| 416 | int path_len); |
---|
| 417 | |
---|
| 418 | int RP_LIB_XML_LEN( int* handle); |
---|
| 419 | |
---|
| 420 | void RP_LIB_XML( int* handle, |
---|
| 421 | char* retText, |
---|
| 422 | int retText_len); |
---|
| 423 | |
---|
| 424 | int RP_LIB_WRITE_XML( int* handle, |
---|
| 425 | char* outFile, |
---|
| 426 | int outFile_len); |
---|
| 427 | |
---|
| 428 | void RP_LIB_NODE_COMP ( int* handle, |
---|
| 429 | char* retText, |
---|
| 430 | int retText_len); |
---|
| 431 | |
---|
| 432 | void RP_LIB_NODE_TYPE ( int* handle, |
---|
| 433 | char* retText, |
---|
| 434 | int retText_len); |
---|
| 435 | |
---|
| 436 | void RP_LIB_NODE_ID ( int* handle, |
---|
| 437 | char* retText, |
---|
| 438 | int retText_len); |
---|
| 439 | |
---|
| 440 | void RP_RESULT( int* handle ); |
---|
| 441 | |
---|
| 442 | |
---|
| 443 | /**********************************************************/ |
---|
| 444 | /**********************************************************/ |
---|
| 445 | |
---|
[591] | 446 | #ifdef __cplusplus |
---|
[84] | 447 | } |
---|
| 448 | #endif |
---|