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

Contents of /trunk/pygtk/registry.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 871 - (show annotations) (download) (as text)
Thu Oct 5 09:30:08 2006 UTC (14 years, 2 months ago) by johnpye
File MIME type: text/x-chdr
File size: 432 byte(s)
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