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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 208 - (show annotations) (download) (as text)
Tue Jan 24 03:19:37 2006 UTC (14 years, 11 months ago) by johnpye
File MIME type: text/x-c++src
File size: 594 byte(s)
Added menu bar at top of PyGTK interface.
'Preferences' menu currently just outputs the number of
solver parameters in use. Plan is to allow the parameters
to be viewed and edited via the GUI.
1 #include "solverparameters.h"
2
3 #include <iostream>
4 #include <sstream>
5 using namespace std;
6
7 SolverParameters::SolverParameters(const slv_parameters_t &p) : p(p){
8 cerr << "CREATED SOLVERPARAMETERS" << endl;
9 }
10
11 SolverParameters::SolverParameters(){
12 cerr << "CONSTRUCTED SOLVERPARAMETERS NULL" << endl;
13 }
14
15 SolverParameters::SolverParameters(const SolverParameters &old) : p(old.p){
16 // copy constructor
17 }
18
19 const string
20 SolverParameters::toString() const{
21 stringstream ss;
22 ss << "SOLVERPARAMETERS:TOSTRING:" << endl;
23 ss << "Number of parameters: " << p.num_parms << endl;
24 return ss.str();
25 }
26

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