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

Last change on this file since 119 was 119, checked in by dkearney, 18 years ago
  1. added doxygen headers to some fortran RpLibrary? bindings
  2. cleaned up app-fermi/fortran example
  3. removed rp_add_presets(...) function from api
  4. minor logic changes to RpUnits.cc.
File size: 4.5 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
48int 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
54void rp_lib_get (           int* handle,
55                            char* path,
56                            char* retText,
57                            int path_len,
58                            int retText_len );
59
60double rp_lib_get_double (  int* handle,
61                            char* path,
62                            int path_len);
63
64void rp_lib_put_str (       int* handle,
65                            char* path,
66                            char* value,
67                            int* append,
68                            int path_len,
69                            int value_len );
70
71void 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
83void 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
93void 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
105int 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
113int rp_lib_xml_len(         int* handle);
114*/
115
116void rp_lib_xml(            int* handle,
117                            char* retText,
118                            int retText_len);
119
120int rp_lib_write_xml(       int* handle,
121                            char* outFile,
122                            int outFile_len);
123
124void rp_lib_node_comp (     int* handle,
125                            char* retText,
126                            int retText_len);
127
128void rp_lib_node_type (     int* handle,
129                            char* retText,
130                            int retText_len);
131
132void rp_lib_node_id (       int* handle,
133                            char* retText,
134                            int retText_len);
135
136void rp_result(             int* handle );
137
138/**********************************************************/
139
140#ifdef __cplusplus
141    }
142#endif
Note: See TracBrowser for help on using the repository browser.