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 | void rp_lib_get_str ( 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 | int rp_lib_get_integer ( int* handle, |
---|
71 | char* path, |
---|
72 | int path_len); |
---|
73 | |
---|
74 | int rp_lib_get_boolean ( int* handle, |
---|
75 | char* path, |
---|
76 | int path_len); |
---|
77 | |
---|
78 | void rp_lib_put_str ( int* handle, |
---|
79 | char* path, |
---|
80 | char* value, |
---|
81 | int* append, |
---|
82 | int path_len, |
---|
83 | int value_len ); |
---|
84 | |
---|
85 | void rp_lib_put_id_str ( int* handle, |
---|
86 | char* path, |
---|
87 | char* value, |
---|
88 | char* id, |
---|
89 | int* append, |
---|
90 | int path_len, |
---|
91 | int value_len, |
---|
92 | int id_len ); |
---|
93 | |
---|
94 | /* |
---|
95 | * rp_lib_put_obj still needs to be written |
---|
96 | * keep function declaration around |
---|
97 | void rp_lib_put_obj ( int* handle, |
---|
98 | char* path, |
---|
99 | int* valHandle, |
---|
100 | int* append, |
---|
101 | int path_len ); |
---|
102 | */ |
---|
103 | |
---|
104 | /* |
---|
105 | * rp_lib_put_id_obj still needs to be written |
---|
106 | * keep function declaration around |
---|
107 | void rp_lib_put_id_obj ( int* handle, |
---|
108 | char* path, |
---|
109 | int* valHandle, |
---|
110 | char* id, |
---|
111 | int* append, |
---|
112 | int path_len, |
---|
113 | int id_len ); |
---|
114 | */ |
---|
115 | |
---|
116 | /* |
---|
117 | * rp_lib_remove still needs to be written |
---|
118 | * keep function declaration around |
---|
119 | int rp_lib_remove ( int* handle, |
---|
120 | char* path, |
---|
121 | int path_len); |
---|
122 | */ |
---|
123 | |
---|
124 | /* |
---|
125 | * rp_lib_xml_len still needs to be written |
---|
126 | * keep function declaration around |
---|
127 | int rp_lib_xml_len( int* handle); |
---|
128 | */ |
---|
129 | |
---|
130 | void rp_lib_xml( int* handle, |
---|
131 | char* retText, |
---|
132 | int retText_len); |
---|
133 | |
---|
134 | int rp_lib_write_xml( int* handle, |
---|
135 | char* outFile, |
---|
136 | int outFile_len); |
---|
137 | |
---|
138 | void rp_lib_node_comp ( int* handle, |
---|
139 | char* retText, |
---|
140 | int retText_len); |
---|
141 | |
---|
142 | void rp_lib_node_type ( int* handle, |
---|
143 | char* retText, |
---|
144 | int retText_len); |
---|
145 | |
---|
146 | void rp_lib_node_id ( int* handle, |
---|
147 | char* retText, |
---|
148 | int retText_len); |
---|
149 | |
---|
150 | void rp_result( int* handle ); |
---|
151 | |
---|
152 | /**********************************************************/ |
---|
153 | |
---|
154 | #ifdef __cplusplus |
---|
155 | } |
---|
156 | #endif |
---|