source: trunk/src/core/RpBindingsDict.h @ 623

Last change on this file since 623 was 511, checked in by dkearney, 18 years ago

moving all .h files to their respective src directories, updating tools.py to include python's re module, updated setup.py.in to use .h files from the installed version of rappture and to adapt to the new location of .h files. .h files are now all stored in the lib directory under the rappture installation folder. this should simplify people's code, so they dont have to include wierd search paths for header files. adjusted the paths in rappture.in, allowing people to use their own version of python and perl. octave on the other hand is still broken for people downloading our binary and not using libhdf5-1.6.2. src's makefile.in was modified to copy the .h files from the core and cee directories over to the rappture installation directory. the top level makefile.in has all kinds of changes mainly you can now type in ./configure --prefix=... --with-matlab=... and then make install. this will build and install the gui, language bindings, and examples. these changes will probably break the automatic builds but the necessary changes to the rappture-runtime package should be committed in good time.

File size: 1.3 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 *  INTERFACE: Common Rappture Dictionary 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#ifndef _RpBINDINGS_DICT_H
15#define _RpBINDINGS_DICT_H
16
17#include "RpDict.h"
18#include "RpUnits.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24// forward declarations so we can compile the object file
25class RpLibrary;
26/*
27class RpUnits;
28*/
29
30#define DICT_TEMPLATE_L <int,RpLibrary*>
31#define DICT_TEMPLATE_U <int,std::string>
32
33// global declaration of library and units dictionaries
34// for languages that cannot return rappture objects.
35// (fortran, matlab, ...)
36
37extern RpDict DICT_TEMPLATE_L ObjDict_Lib;
38extern RpDict DICT_TEMPLATE_U ObjDictUnits;
39
40
41int storeObject_Lib(RpLibrary* objectName, int key=0);
42int storeObject_UnitsStr(std::string objectName);
43
44RpLibrary* getObject_Lib(int objKey);
45const RpUnits* getObject_UnitsStr(int objKey);
46
47void cleanLibDict();
48void cleanUnitsDict();
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif // _RpBINDINGS_DICT_H
Note: See TracBrowser for help on using the repository browser.