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 |