/[ascend]/trunk/pygtk/interface/variable.cpp
ViewVC logotype

Contents of /trunk/pygtk/interface/variable.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 132 - (show annotations) (download) (as text)
Wed Dec 21 00:14:13 2005 UTC (14 years, 1 month ago) by johnpye
File MIME type: text/x-c++src
File size: 461 byte(s)
Adding the PyGTK interface to CMU repository. Whaddyareckon?
1 #include <iostream>
2 #include <stdexcept>
3 using namespace std;
4
5 #include "variable.h"
6
7 Variable::Variable(){
8 throw runtime_error("Can't create new Variable objects");
9 }
10
11 Variable::Variable(slv_system_t s, struct var_variable *var) : s(s), var(var){
12 //cerr << "CREATED VARIABLE" << endl;
13 char *n=var_make_name(s,var);
14 name=n;
15 delete n;
16 }
17
18 Variable::~Variable(){
19 //cerr << "DESTROYED VARIABLE" << endl;
20 }
21
22 const string &
23 Variable::getName(){
24 return name;
25 }

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22