Parent Directory
|
Revision Log
Adding the PyGTK interface to CMU repository. Whaddyareckon?
| 1 | #include <iostream> |
| 2 | #include <stdexcept> |
| 3 | using namespace std; |
| 4 | |
| 5 | #include "module.h" |
| 6 | |
| 7 | Module::Module(const module_t *t) : t(t){ |
| 8 | //cerr << "CREATED MODULE" << endl; |
| 9 | } |
| 10 | |
| 11 | Module::Module(){ |
| 12 | throw runtime_error("Can't create modules via C++ interface (use Library::load instead)"); |
| 13 | } |
| 14 | |
| 15 | const char * |
| 16 | Module::getName() const{ |
| 17 | return Asc_ModuleName(t); |
| 18 | } |
| 19 | |
| 20 | const struct module_t * |
| 21 | Module::getInternalType() const{ |
| 22 | return t; |
| 23 | } |
| 24 | |
| 25 | const struct tm * |
| 26 | Module::getMtime() const{ |
| 27 | return Asc_ModuleTimeModified(t); |
| 28 | } |
| 29 | |
| 30 | const char * |
| 31 | Module::getFilename() const{ |
| 32 | return Asc_ModuleFileName(t); |
| 33 | } |
| 34 |
| john.pye@anu.edu.au | ViewVC Help |
| Powered by ViewVC 1.1.22 |