Last change
on this file since 104 was
104,
checked in by dkearney, 19 years ago
|
This update brings us one step closer to being const correct in the RpUnits
class. Added a few more comments. All other files touched were made to
comply with the new const correct RpUnits.[h,cc]
|
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 | const RpUnits* getObject_UnitsStr(int objKey); |
---|
44 | |
---|
45 | void cleanLibDict(); |
---|
46 | void cleanUnitsDict(); |
---|
47 | |
---|
48 | #ifdef __cplusplus |
---|
49 | } |
---|
50 | #endif |
---|
51 | |
---|
52 | #endif // _RpBINDINGS_DICT_H |
---|
Note: See
TracBrowser
for help on using the repository browser.