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

Annotation of /trunk/pygtk/registry.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 893 - (hide annotations) (download) (as text)
Sun Oct 22 05:18:36 2006 UTC (13 years, 11 months ago) by johnpye
File MIME type: text/x-chdr
File size: 777 byte(s)
Better plot points in moody diagram model.
Attempt to get rid of some compiler warnings in extmethod.
Better handling of LD_LIBRARY_PATH and ASCENDLIBRARY in ascdev.
Changed default documentation path (to avoid warnings, seems like a scons bug?)
1 johnpye 869 /**
2 johnpye 893 @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 johnpye 869 */
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 johnpye 893 /*
18     extern "C"{
19     #ifdef ASCXX_USE_PYTHON
20     ASC_IMPORT(void *) importhandler_getsharedpointer(const char *);
21     #endif
22     }
23     */
24    
25 johnpye 875 #include "instance.h"
26    
27 johnpye 869 class Registry{
28     public:
29     void setInteger(const char *key, int value);
30 johnpye 875 void setPointer(const char *key, void *value);
31     Instanc *getInstance(const char *key);
32 johnpye 869 #ifdef ASCXX_USE_PYTHON
33     void setPyObject(const char *key, PyObject *obj);
34     #endif
35     };
36    
37     #endif /* ASCXX_REGISTRY_H */

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