Parent Directory
|
Revision Log
Changed the way that SWIG accesses the C++ 'Registry' class in the case of Python (trying to make it language neutral)
1 | /** |
2 | Provide methods to registry GUI objects with libascend |
3 | so that they can be accessed from script methods there. |
4 | */ |
5 | |
6 | #ifndef ASCXX_REGISTRY_H |
7 | #define ASCXX_REGISTRY_H |
8 | |
9 | #include "config.h" |
10 | |
11 | #ifdef ASCXX_USE_PYTHON |
12 | # include <Python.h> |
13 | #endif |
14 | |
15 | class Registry{ |
16 | public: |
17 | void setInteger(const char *key, int value); |
18 | #ifdef ASCXX_USE_PYTHON |
19 | void setPyObject(const char *key, PyObject *obj); |
20 | #endif |
21 | }; |
22 | |
23 | #endif /* ASCXX_REGISTRY_H */ |
john.pye@anu.edu.au | ViewVC Help |
Powered by ViewVC 1.1.22 |