1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * INTERFACE: Fortran Rappture Library Header |
---|
4 | * |
---|
5 | * ====================================================================== |
---|
6 | * AUTHOR: Derrick S. 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 | #include "RpLibrary.h" |
---|
15 | #include <string.h> |
---|
16 | #include <fstream> |
---|
17 | #include "RpFortranCommon.h" |
---|
18 | #include "RpLibraryFStubs.h" |
---|
19 | |
---|
20 | #ifdef __cplusplus |
---|
21 | extern "C" { |
---|
22 | #endif |
---|
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_children ( int* handle, /* integer handle of library */ |
---|
49 | char* path, /* search path of the xml */ |
---|
50 | int* childHandle, /*int handle of last returned child*/ |
---|
51 | int path_len /*length of the search path buffer*/ |
---|
52 | ); |
---|
53 | |
---|
54 | void rp_lib_get ( int* handle, |
---|
55 | char* path, |
---|
56 | char* retText, |
---|
57 | int path_len, |
---|
58 | int retText_len ); |
---|
59 | |
---|
60 | double rp_lib_get_double ( int* handle, |
---|
61 | char* path, |
---|
62 | int path_len); |
---|
63 | |
---|
64 | void rp_lib_put_str ( int* handle, |
---|
65 | char* path, |
---|
66 | char* value, |
---|
67 | int* append, |
---|
68 | int path_len, |
---|
69 | int value_len ); |
---|
70 | |
---|
71 | void rp_lib_put_id_str ( int* handle, |
---|
72 | char* path, |
---|
73 | char* value, |
---|
74 | char* id, |
---|
75 | int* append, |
---|
76 | int path_len, |
---|
77 | int value_len, |
---|
78 | int id_len ); |
---|
79 | |
---|
80 | /* |
---|
81 | * rp_lib_put_obj still needs to be written |
---|
82 | * keep function declaration around |
---|
83 | void rp_lib_put_obj ( int* handle, |
---|
84 | char* path, |
---|
85 | int* valHandle, |
---|
86 | int* append, |
---|
87 | int path_len ); |
---|
88 | */ |
---|
89 | |
---|
90 | /* |
---|
91 | * rp_lib_put_id_obj still needs to be written |
---|
92 | * keep function declaration around |
---|
93 | void rp_lib_put_id_obj ( int* handle, |
---|
94 | char* path, |
---|
95 | int* valHandle, |
---|
96 | char* id, |
---|
97 | int* append, |
---|
98 | int path_len, |
---|
99 | int id_len ); |
---|
100 | */ |
---|
101 | |
---|
102 | /* |
---|
103 | * rp_lib_remove still needs to be written |
---|
104 | * keep function declaration around |
---|
105 | int rp_lib_remove ( int* handle, |
---|
106 | char* path, |
---|
107 | int path_len); |
---|
108 | */ |
---|
109 | |
---|
110 | /* |
---|
111 | * rp_lib_xml_len still needs to be written |
---|
112 | * keep function declaration around |
---|
113 | int rp_lib_xml_len( int* handle); |
---|
114 | */ |
---|
115 | |
---|
116 | void rp_lib_xml( int* handle, |
---|
117 | char* retText, |
---|
118 | int retText_len); |
---|
119 | |
---|
120 | int rp_lib_write_xml( int* handle, |
---|
121 | char* outFile, |
---|
122 | int outFile_len); |
---|
123 | |
---|
124 | void rp_lib_node_comp ( int* handle, |
---|
125 | char* retText, |
---|
126 | int retText_len); |
---|
127 | |
---|
128 | void rp_lib_node_type ( int* handle, |
---|
129 | char* retText, |
---|
130 | int retText_len); |
---|
131 | |
---|
132 | void rp_lib_node_id ( int* handle, |
---|
133 | char* retText, |
---|
134 | int retText_len); |
---|
135 | |
---|
136 | void rp_result( int* handle ); |
---|
137 | |
---|
138 | /**********************************************************/ |
---|
139 | |
---|
140 | #ifdef __cplusplus |
---|
141 | } |
---|
142 | #endif |
---|