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

Contents of /trunk/ascxx/module.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download) (as text)
Mon Apr 24 02:23:08 2006 UTC (18 years, 5 months ago) by johnpye
Original Path: trunk/pygtk/module.cpp
File MIME type: text/x-c++src
File size: 576 byte(s)
Removed 'interface' directory in trunk/pygtk/interface (moved everything up a level)
Made corresponding changes to SCons* and spec files.
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