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

Annotation of /trunk/pygtk/module.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 132 - (hide annotations) (download) (as text)
Wed Dec 21 00:14:13 2005 UTC (18 years, 6 months ago) by johnpye
Original Path: trunk/pygtk/interface/module.cpp
File MIME type: text/x-c++src
File size: 576 byte(s)
Adding the PyGTK interface to CMU repository. Whaddyareckon?
1 johnpye 132 #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