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

Contents of /trunk/pygtk/extmethod.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 893 - (show 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 #ifndef ASCXX_EXTMETHOD_H
2 #define ASCXX_EXTMETHOD_H
3
4 #include "config.h"
5
6 #ifdef ASCXX_USE_PYTHON
7 # include <Python.h>
8 #endif
9
10 extern "C"{
11 #include <utilities/ascConfig.h>
12 #include <compiler/compiler.h>
13 #include <compiler/extfunc.h>
14 #include <compiler/importhandler.h>
15 }
16
17 /**
18 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 */
22 class ExtMethod {
23 private:
24 const struct ExternalFunc *e;
25 public:
26 ExtMethod();
27 #ifdef ASCXX_USE_PYTHON
28 ExtMethod(PyObject *);
29 #endif
30 ExtMethod(const struct ExternalFunc *);
31 ExtMethod(const ExtMethod &);
32 const char *getHelp() const;
33 const char *getName() const;
34 const unsigned long getNumInputs() const;
35 const unsigned long getNumOutputs() const;
36 };
37
38 #endif // ASCXX_EXTMETHOD_H

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