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

Contents of /trunk/ascxx/module.cpp

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, 9 months ago) by jpye
File MIME type: text/x-c++src
File size: 576 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 #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