/[ascend]/trunk/ascxx/registry.h
ViewVC logotype

Contents of /trunk/ascxx/registry.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2327 - (show annotations) (download) (as text)
Wed Dec 22 07:17:24 2010 UTC (8 years, 8 months ago) by jpye
File MIME type: text/x-chdr
File size: 821 byte(s)
Merging in refactor of the C++ code, which is moved out of 'pygtk' and into 'ascxx'.
Adding support for IPOPT 3.9.1, the current latest version.
Support in dtar for parallel builds (possibly needs some testing still).
1 /**
2 @file
3 This head files provides SWIGed access to the importhandler 'shared pointer'
4 mechanism used to pass data from 'extpy' to 'ascpy' in particular (and
5 hopefully between other scripting languages/GUI combinations in future)
6 */
7
8 #ifndef ASCXX_REGISTRY_H
9 #define ASCXX_REGISTRY_H
10
11 #include "config.h"
12
13 #ifdef ASCXX_USE_PYTHON
14 # include <Python.h>
15 #endif
16
17 /*
18 extern "C"{
19 #ifdef ASCXX_USE_PYTHON
20 ASC_IMPORT void * importhandler_getsharedpointer(const char *);
21 #endif
22 }
23 */
24
25 #include "instance.h"
26
27 class Registry{
28 public:
29 void setInteger(const char *key, int value);
30 void setPointer(const char *key, void *value);
31 Instanc *getInstance(const char *key);
32 Simulation &getSimulation(const char *key);
33 #ifdef ASCXX_USE_PYTHON
34 void setPyObject(const char *key, PyObject *obj);
35 #endif
36 };
37
38 #endif /* ASCXX_REGISTRY_H */

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22