source: trunk/include/core/RpBindingsDict.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: 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
19extern "C" {
20#endif
21
22// forward declarations so we can compile the object file
23class RpLibrary;
24/*
25class 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
35extern RpDict DICT_TEMPLATE_L ObjDict_Lib;
36extern RpDict DICT_TEMPLATE_U ObjDictUnits;
37
38
39int storeObject_Lib(RpLibrary* objectName);
40int storeObject_UnitsStr(std::string objectName);
41
42RpLibrary* getObject_Lib(int objKey);
43RpUnits* 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.