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

Contents of /trunk/pygtk/module.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 669 - (show annotations) (download) (as text)
Wed Jun 21 07:00:45 2006 UTC (17 years, 11 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1029 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_MODULE_H
2 #define ASCXX_MODULE_H
3
4 #include "config.h"
5 extern "C"{
6 #include <utilities/ascConfig.h>
7 #include <compiler/compiler.h>
8 #include <general/list.h>
9 #include <compiler/module.h>
10 }
11
12 #include "type.h"
13
14 /**
15 A Module in ASCEND is an opened version of an A4L or A4C file. You
16 can have multiple versions of a file active in memory at a time,
17 theoretically, although no serious effort to support this in the
18 PyGTK interface has yet been made.
19
20 To view what types are present in a given Module, you currently
21 need to query the Library object.
22 */
23 class Module{
24 private:
25 const module_t *t;
26
27 public:
28 Module();
29 Module(const module_t *t);
30
31 /// Name of the current module (as identified by ASCEND)
32 const char *getName() const;
33
34 /// Modification time (see <time.h>) for the current module
35 const struct tm* getMtime() const;
36
37 /// Filename for the current module
38 const char *getFilename() const;
39
40 /// Return the internal representation of the module
41 const struct module_t *getInternalType() const;
42 };
43
44 #endif

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