source: trunk/include/fortran/RpLibraryFInterface.h @ 115

Last change on this file since 115 was 115, checked in by mmc, 19 years ago

Updated all copyright notices.

File size: 4.7 KB
Line 
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
24int rp_lib ( const char* filePath, int filePath_len );
25
26void rp_lib_element_comp (  int* handle,
27                            char* path,
28                            char* retText,
29                            int path_len,
30                            int retText_len );
31
32void rp_lib_element_id (    int* handle,
33                            char* path,
34                            char* retText,
35                            int path_len,
36                            int retText_len );
37
38void rp_lib_element_type (  int* handle,
39                            char* path,
40                            char* retText,
41                            int path_len,
42                            int retText_len );
43
44int rp_lib_element_obj (    int* handle,
45                            char* path,
46                            int path_len );
47
48/*
49 * rp_lib_child_num still needs to be written
50 * keep function declaration around
51int rp_lib_child_num (      int* handle,
52                            char* path,
53                            int* childHandle,
54                            int path_len);
55*/
56
57int rp_lib_children (       int* handle, /* integer handle of library */
58                            char* path, /* search path of the xml */
59                            int* childHandle, /*int handle of last returned child*/
60                            int path_len  /*length of the search path buffer*/
61                    );
62
63
64void rp_lib_get (           int* handle,
65                            char* path,
66                            char* retText,
67                            int path_len,
68                            int retText_len );
69
70double rp_lib_get_double (  int* handle,
71                            char* path,
72                            int path_len);
73
74void rp_lib_put_str (       int* handle,
75                            char* path,
76                            char* value,
77                            int* append,
78                            int path_len,
79                            int value_len );
80
81void rp_lib_put_id_str (    int* handle,
82                            char* path,
83                            char* value,
84                            char* id,
85                            int* append,
86                            int path_len,
87                            int value_len,
88                            int id_len );
89
90/*
91 * rp_lib_put_obj still needs to be written
92 * keep function declaration around
93void rp_lib_put_obj (       int* handle,
94                            char* path,
95                            int* valHandle,
96                            int* append,
97                            int path_len );
98*/
99
100/*
101 * rp_lib_put_id_obj still needs to be written
102 * keep function declaration around
103void rp_lib_put_id_obj (    int* handle,
104                            char* path,
105                            int* valHandle,
106                            char* id,
107                            int* append,
108                            int path_len,
109                            int id_len );
110*/
111
112/*
113 * rp_lib_remove still needs to be written
114 * keep function declaration around
115int rp_lib_remove (         int* handle,
116                            char* path,
117                            int path_len);
118*/
119
120/*
121 * rp_lib_xml_len still needs to be written
122 * keep function declaration around
123int rp_lib_xml_len(         int* handle);
124*/
125
126void rp_lib_xml(            int* handle,
127                            char* retText,
128                            int retText_len);
129
130int rp_lib_write_xml(       int* handle,
131                            char* outFile,
132                            int outFile_len);
133
134void rp_lib_node_comp (     int* handle,
135                            char* retText,
136                            int retText_len);
137
138void rp_lib_node_type (     int* handle,
139                            char* retText,
140                            int retText_len);
141
142void rp_lib_node_id (       int* handle,
143                            char* retText,
144                            int retText_len);
145
146void rp_result(             int* handle );
147
148void rp_quit();
149
150
151/**********************************************************/
152
153#ifdef __cplusplus
154    }
155#endif
Note: See TracBrowser for help on using the repository browser.