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

Last change on this file since 93 was 93, checked in by dkearney, 19 years ago
  1. corrected c interface language binding function names so they are

consistant with previous c interface function names

  1. separated object dictionaries from fortran code, placed them in

the RpBindings.[h,cc] files so matlab bindings can use them too.

  1. adjusted makefile to compile RpBindings code
File size: 4.6 KB
Line 
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
22int rp_lib ( const char* filePath, int filePath_len );
23
24void rp_lib_element_comp (  int* handle,
25                            char* path,
26                            char* retText,
27                            int path_len,
28                            int retText_len );
29
30void rp_lib_element_id (    int* handle,
31                            char* path,
32                            char* retText,
33                            int path_len,
34                            int retText_len );
35
36void rp_lib_element_type (  int* handle,
37                            char* path,
38                            char* retText,
39                            int path_len,
40                            int retText_len );
41
42int 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
49int rp_lib_child_num (      int* handle,
50                            char* path,
51                            int* childHandle,
52                            int path_len);
53*/
54
55int 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
62void rp_lib_get (           int* handle,
63                            char* path,
64                            char* retText,
65                            int path_len,
66                            int retText_len );
67
68double rp_lib_get_double (  int* handle,
69                            char* path,
70                            int path_len);
71
72void rp_lib_put_str (       int* handle,
73                            char* path,
74                            char* value,
75                            int* append,
76                            int path_len,
77                            int value_len );
78
79void 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
91void 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
101void 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
113int 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
121int rp_lib_xml_len(         int* handle);
122*/
123
124void rp_lib_xml(            int* handle,
125                            char* retText,
126                            int retText_len);
127
128int rp_lib_write_xml(       int* handle,
129                            char* outFile,
130                            int outFile_len);
131
132void rp_lib_node_comp (     int* handle,
133                            char* retText,
134                            int retText_len);
135
136void rp_lib_node_type (     int* handle,
137                            char* retText,
138                            int retText_len);
139
140void rp_lib_node_id (       int* handle,
141                            char* retText,
142                            int retText_len);
143
144void rp_result(             int* handle );
145
146void rp_quit();
147
148
149/**********************************************************/
150
151#ifdef __cplusplus
152    }
153#endif
Note: See TracBrowser for help on using the repository browser.