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

Contents of /trunk/ascxx/module.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2327 - (show annotations) (download) (as text)
Wed Dec 22 07:17:24 2010 UTC (13 years, 8 months ago) by jpye
File MIME type: text/x-chdr
File size: 1054 byte(s)
Merging in refactor of the C++ code, which is moved out of 'pygtk' and into 'ascxx'.
Adding support for IPOPT 3.9.1, the current latest version.
Support in dtar for parallel builds (possibly needs some testing still).
1 #ifndef ASCXX_MODULE_H
2 #define ASCXX_MODULE_H
3
4 #include "config.h"
5 extern "C"{
6 #include <ascend/general/platform.h>
7 #include <ascend/compiler/compiler.h>
8 #include <ascend/general/list.h>
9 #include <ascend/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