/[ascend]/trunk/pygtk/interface/method.h
ViewVC logotype

Contents of /trunk/pygtk/interface/method.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 480 - (show annotations) (download) (as text)
Mon Apr 17 10:45:23 2006 UTC (13 years, 8 months ago) by johnpye
File MIME type: text/x-chdr
File size: 933 byte(s)
Adding ASC_DLLSPEC to all functions that are being used by Python interface.
Also cleaned up some #ifdef header brackets and html-style comments inside doxygen comments.
Renamed pygtk/interface/config.in to pygtk/interface/config.h.in and made 
this active again (for ASC_BUILDING_INTERFACE) use.
Trying to catch error in ascpy.Library call with try/except, doesn't work though.
1 #ifndef SWIG_METHOD_H
2 #define SWIG_METHOD_H
3
4 #include <string>
5
6 #include "config.h"
7 extern "C"{
8 #include <utilities/ascConfig.h>
9 #include <general/list.h>
10 #include <compiler/instance_enum.h>
11 #include <compiler/watchpt.h>
12
13 #include <compiler/fractions.h>
14 #include <compiler/compiler.h>
15 #include <compiler/dimen.h>
16 #include <compiler/types.h>
17 #include <compiler/proc.h>
18 #include <compiler/initialize.h>
19
20 }
21
22 #include "symchar.h"
23
24 /**
25 Initialisation functions are specified
26 in models using "METHOD" statements.
27
28 This class acts as a holder for these funtions, so that they
29 can be passed from a type to an instance via instanc.run(method).
30
31 (@TODO rename this class to Method or similar)
32 */
33 class Method{
34 private:
35 struct InitProcedure *initproc;
36 public:
37 Method();
38 Method(struct InitProcedure *initproc);
39 ~Method();
40 struct InitProcedure *getInternalType() const;
41 const char *getName() const;
42 SymChar getSym() const;
43 };
44
45 #endif

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