1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * INTERFACE: Fortran Rappture Library Header |
---|
4 | * |
---|
5 | * ====================================================================== |
---|
6 | * AUTHOR: Derrick S. Kearney, Purdue University |
---|
7 | * Copyright (c) 2005 |
---|
8 | * Purdue Research Foundation, West Lafayette, IN |
---|
9 | * ====================================================================== |
---|
10 | */ |
---|
11 | |
---|
12 | #include "RpLibrary.h" |
---|
13 | #include <string.h> |
---|
14 | #include <fstream> |
---|
15 | #include "RpFortranCommon.h" |
---|
16 | #include "RpLibraryFStubs.h" |
---|
17 | |
---|
18 | #ifdef __cplusplus |
---|
19 | extern "C" { |
---|
20 | #endif |
---|
21 | |
---|
22 | int rp_lib ( const char* filePath, int filePath_len ); |
---|
23 | |
---|
24 | void rp_lib_element_comp ( int* handle, |
---|
25 | char* path, |
---|
26 | char* retText, |
---|
27 | int path_len, |
---|
28 | int retText_len ); |
---|
29 | |
---|
30 | void rp_lib_element_id ( int* handle, |
---|
31 | char* path, |
---|
32 | char* retText, |
---|
33 | int path_len, |
---|
34 | int retText_len ); |
---|
35 | |
---|
36 | void rp_lib_element_type ( int* handle, |
---|
37 | char* path, |
---|
38 | char* retText, |
---|
39 | int path_len, |
---|
40 | int retText_len ); |
---|
41 | |
---|
42 | int rp_lib_element_obj ( int* handle, |
---|
43 | char* path, |
---|
44 | int path_len ); |
---|
45 | |
---|
46 | /* |
---|
47 | * rp_lib_child_num still needs to be written |
---|
48 | * keep function declaration around |
---|
49 | int rp_lib_child_num ( int* handle, |
---|
50 | char* path, |
---|
51 | int* childHandle, |
---|
52 | int path_len); |
---|
53 | */ |
---|
54 | |
---|
55 | int rp_lib_children ( int* handle, /* integer handle of library */ |
---|
56 | char* path, /* search path of the xml */ |
---|
57 | int* childHandle, /*int handle of last returned child*/ |
---|
58 | int path_len /*length of the search path buffer*/ |
---|
59 | ); |
---|
60 | |
---|
61 | |
---|
62 | void rp_lib_get ( int* handle, |
---|
63 | char* path, |
---|
64 | char* retText, |
---|
65 | int path_len, |
---|
66 | int retText_len ); |
---|
67 | |
---|
68 | double rp_lib_get_double ( int* handle, |
---|
69 | char* path, |
---|
70 | int path_len); |
---|
71 | |
---|
72 | void rp_lib_put_str ( int* handle, |
---|
73 | char* path, |
---|
74 | char* value, |
---|
75 | int* append, |
---|
76 | int path_len, |
---|
77 | int value_len ); |
---|
78 | |
---|
79 | void rp_lib_put_id_str ( int* handle, |
---|
80 | char* path, |
---|
81 | char* value, |
---|
82 | char* id, |
---|
83 | int* append, |
---|
84 | int path_len, |
---|
85 | int value_len, |
---|
86 | int id_len ); |
---|
87 | |
---|
88 | /* |
---|
89 | * rp_lib_put_obj still needs to be written |
---|
90 | * keep function declaration around |
---|
91 | void rp_lib_put_obj ( int* handle, |
---|
92 | char* path, |
---|
93 | int* valHandle, |
---|
94 | int* append, |
---|
95 | int path_len ); |
---|
96 | */ |
---|
97 | |
---|
98 | /* |
---|
99 | * rp_lib_put_id_obj still needs to be written |
---|
100 | * keep function declaration around |
---|
101 | void rp_lib_put_id_obj ( int* handle, |
---|
102 | char* path, |
---|
103 | int* valHandle, |
---|
104 | char* id, |
---|
105 | int* append, |
---|
106 | int path_len, |
---|
107 | int id_len ); |
---|
108 | */ |
---|
109 | |
---|
110 | /* |
---|
111 | * rp_lib_remove still needs to be written |
---|
112 | * keep function declaration around |
---|
113 | int rp_lib_remove ( int* handle, |
---|
114 | char* path, |
---|
115 | int path_len); |
---|
116 | */ |
---|
117 | |
---|
118 | /* |
---|
119 | * rp_lib_xml_len still needs to be written |
---|
120 | * keep function declaration around |
---|
121 | int rp_lib_xml_len( int* handle); |
---|
122 | */ |
---|
123 | |
---|
124 | void rp_lib_xml( int* handle, |
---|
125 | char* retText, |
---|
126 | int retText_len); |
---|
127 | |
---|
128 | int rp_lib_write_xml( int* handle, |
---|
129 | char* outFile, |
---|
130 | int outFile_len); |
---|
131 | |
---|
132 | void rp_lib_node_comp ( int* handle, |
---|
133 | char* retText, |
---|
134 | int retText_len); |
---|
135 | |
---|
136 | void rp_lib_node_type ( int* handle, |
---|
137 | char* retText, |
---|
138 | int retText_len); |
---|
139 | |
---|
140 | void rp_lib_node_id ( int* handle, |
---|
141 | char* retText, |
---|
142 | int retText_len); |
---|
143 | |
---|
144 | void rp_result( int* handle ); |
---|
145 | |
---|
146 | void rp_quit(); |
---|
147 | |
---|
148 | |
---|
149 | /**********************************************************/ |
---|
150 | |
---|
151 | #ifdef __cplusplus |
---|
152 | } |
---|
153 | #endif |
---|