source: trunk/include/cee/RpLibraryCInterface.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: 3.8 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 *  INTERFACE: C Rappture Library Header
4 *
5 * ======================================================================
6 *  AUTHOR:  Derrick Kearney, Purdue University
7 *  Copyright (c) 2005
8 *  Purdue Research Foundation, West Lafayette, IN
9 * ======================================================================
10 */
11
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17    typedef struct RpLibrary RpLibrary;
18
19    // unit definition functions
20    RpLibrary*  rpLibrary             (const char* path);
21    void rpFreeLibrary                (RpLibrary* lib);
22
23    // RpLibrary member functions
24    RpLibrary*  rpElement             (RpLibrary* lib, const char* path);
25    RpLibrary*  rpElementAsObject     (RpLibrary* lib, const char* path);
26    const char* rpElementAsType       (RpLibrary* lib, const char* path);
27    const char* rpElementAsComp       (RpLibrary* lib, const char* path);
28    const char* rpElementAsId         (RpLibrary* lib, const char* path);
29
30    RpLibrary* rpChildren             (RpLibrary* lib,
31                                     const char* path,
32                                     RpLibrary* childEle);
33    RpLibrary* rpChildrenByType       (RpLibrary* lib,
34                                     const char* path,
35                                     RpLibrary* childEle,
36                                     const char* type   );
37    RpLibrary* rpChildrenAsObject     (RpLibrary* lib,
38                                     const char* path,
39                                     const char* type   );
40    const char* rpChildrenAsType      (RpLibrary* lib,
41                                     const char* path,
42                                     const char* type   );
43    const char* rpChildrenAsComp      (RpLibrary* lib,
44                                     const char* path,
45                                     const char* type   );
46    const char* rpChildrenAsId        (RpLibrary* lib,
47                                     const char* path,
48                                     const char* type   );
49
50    RpLibrary*  rpGet                 (RpLibrary* lib, const char* path);
51    const char* rpGetString           (RpLibrary* lib, const char* path);
52    double      rpGetDouble           (RpLibrary* lib, const char* path);
53
54    void        rpPut                 (RpLibrary* lib,
55                                     const char* path,
56                                     const char* value,
57                                     const char* id,
58                                     int append         );
59    void        rpPutStringId         (RpLibrary* lib,
60                                     const char* path,
61                                     const char* value,
62                                     const char* id,
63                                     int append         );
64    void        rpPutString           (RpLibrary* lib,
65                                     const char* path,
66                                     const char* value,
67                                     int append         );
68    void        rpPutDoubleId         (RpLibrary* lib,
69                                     const char* path,
70                                     double value,
71                                     const char* id,
72                                     int append         );
73    void        rpPutDouble           (RpLibrary* lib,
74                                     const char* path,
75                                     double value,
76                                     int append         );
77
78    const char* rpXml                 (RpLibrary* lib);
79
80    const char* rpNodeComp            (RpLibrary* node);
81    const char* rpNodeType            (RpLibrary* node);
82    const char* rpNodeId              (RpLibrary* node);
83
84    void        rpResult              (RpLibrary* lib);
85
86#ifdef __cplusplus
87}
88#endif
Note: See TracBrowser for help on using the repository browser.