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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 213 - (show annotations) (download) (as text)
Tue Jan 24 23:25:56 2006 UTC (18 years, 4 months ago) by johnpye
File MIME type: text/x-chdr
File size: 972 byte(s)
Fixed some missed 'ExtFn'->'ExtMethod' changes
1 #ifndef SWIG_LIBRARY_H
2 #define SWIG_LIBRARY_H
3
4 #include <vector>
5
6 #include "type.h"
7 #include "module.h"
8 #include "symchar.h"
9 #include "extmethod.h"
10
11 /**
12 Handles the loading of ASCEND a4c files into memory, then the
13 listing of the contents of those loaded files. Creates output
14 when loaded files contain errors, although a standardised
15 method for reporting errors is desired for reporting back
16 via SWIG.
17 */
18 class Library{
19 public:
20 Library();
21 ~Library();
22 void load(const char *filename);
23 void listModules(const int &module_type=0) const;
24 Type &findType(SymChar name);
25 std::vector<Module> getModules();
26 std::vector<Type> getModuleTypes(const Module&);
27
28 // External Function library
29 std::vector<ExtMethod> getExtMethods();
30 static void extMethodTraverse(void *,void *);
31 void appendToExtMethodVector(void *);
32
33 // Destroy types from the library
34 void clear();
35
36 private:
37 std::vector<ExtMethod> extmethod_vector;
38
39 static void displayModule(void *m);
40 };
41
42 #endif
43

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