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

Annotation of /trunk/pygtk/extmethod.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: 843 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 210 #ifndef ASCXX_EXTMETHOD_H
2     #define ASCXX_EXTMETHOD_H
3 johnpye 132
4 johnpye 480 #include "config.h"
5 johnpye 870
6 johnpye 893 #ifdef ASCXX_USE_PYTHON
7     # include <Python.h>
8     #endif
9    
10 johnpye 132 extern "C"{
11     #include <utilities/ascConfig.h>
12     #include <compiler/compiler.h>
13     #include <compiler/extfunc.h>
14 johnpye 893 #include <compiler/importhandler.h>
15 johnpye 132 }
16    
17 johnpye 180 /**
18 johnpye 210 This is a wrapper for external methods as returned
19     by the getExtMethods method of the Library object. At this stage it
20     is purely for extracting meta-data about the ExtMethod.
21 johnpye 180 */
22 johnpye 210 class ExtMethod {
23 johnpye 132 private:
24     const struct ExternalFunc *e;
25     public:
26 johnpye 210 ExtMethod();
27 johnpye 870 #ifdef ASCXX_USE_PYTHON
28     ExtMethod(PyObject *);
29     #endif
30 johnpye 893 ExtMethod(const struct ExternalFunc *);
31     ExtMethod(const ExtMethod &);
32 johnpye 132 const char *getHelp() const;
33     const char *getName() const;
34     const unsigned long getNumInputs() const;
35     const unsigned long getNumOutputs() const;
36     };
37    
38 johnpye 210 #endif // ASCXX_EXTMETHOD_H

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