Last change
on this file since 93 was
93,
checked in by dkearney, 19 years ago
|
- corrected c interface language binding function names so they are
consistant with previous c interface function names
- separated object dictionaries from fortran code, placed them in
the RpBindings.[h,cc] files so matlab bindings can use them too.
- adjusted makefile to compile RpBindings code
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * INTERFACE: Common Rappture Dictionary 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 | #ifndef _RpBINDINGS_DICT_H |
---|
13 | #define _RpBINDINGS_DICT_H |
---|
14 | |
---|
15 | #include "RpDict.h" |
---|
16 | #include "RpUnits.h" |
---|
17 | |
---|
18 | #ifdef __cplusplus |
---|
19 | extern "C" { |
---|
20 | #endif |
---|
21 | |
---|
22 | // forward declarations so we can compile the object file |
---|
23 | class RpLibrary; |
---|
24 | /* |
---|
25 | class RpUnits; |
---|
26 | */ |
---|
27 | |
---|
28 | #define DICT_TEMPLATE_L <int,RpLibrary*> |
---|
29 | #define DICT_TEMPLATE_U <int,std::string> |
---|
30 | |
---|
31 | // global declaration of library and units dictionaries |
---|
32 | // for languages that cannot return rappture objects. |
---|
33 | // (fortran, matlab, ...) |
---|
34 | |
---|
35 | extern RpDict DICT_TEMPLATE_L ObjDict_Lib; |
---|
36 | extern RpDict DICT_TEMPLATE_U ObjDictUnits; |
---|
37 | |
---|
38 | |
---|
39 | int storeObject_Lib(RpLibrary* objectName); |
---|
40 | int storeObject_UnitsStr(std::string objectName); |
---|
41 | |
---|
42 | RpLibrary* getObject_Lib(int objKey); |
---|
43 | RpUnits* getObject_UnitsStr(int objKey); |
---|
44 | |
---|
45 | #ifdef __cplusplus |
---|
46 | } |
---|
47 | #endif |
---|
48 | |
---|
49 | #endif // _RpBINDINGS_DICT_H |
---|
Note: See
TracBrowser
for help on using the repository browser.