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

Contents of /trunk/pygtk/library.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 669 - (show annotations) (download) (as text)
Wed Jun 21 07:00:45 2006 UTC (13 years, 5 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1017 byte(s)
Merged changes from DAE branch (revisions 702 to 819) back into trunk.
This adds the Integration API to the ASCEND solver (in base/generic).
Also provides pre-alpha support for 'IDA' from the SUNDIALS suite, a DAE solver.
Many other minor code clean-ups, including adoption of new 'ASC_NEW' and friends (to replace 'ascmalloc')
Added some very sketchy stuff providing 'DIFF(...)' syntax, although it is anticipated that this will be removed.
1 #ifndef ASCXX_LIBRARY_H
2 #define ASCXX_LIBRARY_H
3
4 #include <vector>
5 #include <string>
6
7 #include "type.h"
8 #include "module.h"
9 #include "symchar.h"
10 #include "extmethod.h"
11
12 /**
13 Handles the loading of ASCEND a4c files into memory, then the
14 listing of the contents of those loaded files. Creates output
15 when loaded files contain errors, although a standardised
16 method for reporting errors is desired for reporting back
17 via SWIG.
18 */
19 class Library{
20 public:
21 Library(const char *defaultpath=".");
22 ~Library();
23 void load(const char *filename);
24 void listModules(const int &module_type=0) const;
25 Type &findType(SymChar name);
26 std::vector<Module> getModules();
27 std::vector<Type> getModuleTypes(const Module&);
28
29 // External Function library
30 std::vector<ExtMethod> getExtMethods();
31 static void extMethodTraverse(void *,void *);
32 void appendToExtMethodVector(void *);
33
34 // Destroy types from the library
35 void clear();
36
37 private:
38 std::vector<ExtMethod> extmethod_vector;
39
40 static void displayModule(void *m);
41 };
42
43 #endif

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