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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 254 - (show annotations) (download) (as text)
Thu Feb 2 06:27:17 2006 UTC (18 years, 4 months ago) by johnpye
File MIME type: text/x-chdr
File size: 641 byte(s)
Added reporting of unconverged variables to the console
1 #ifndef SWIG_VARIABLE_H
2 #define SWIG_VARIABLE_H
3
4 #include <string>
5
6 #include "simulation.h"
7
8 extern "C"{
9 #include <utilities/ascConfig.h>
10 #include <solver/slv_types.h>
11 #include <solver/var.h>
12 }
13
14 /**
15 This is a wrapper for the var_variable type in ASCEND. This
16 type is used in reporting the variables in an instance, including
17 when looking for 'eligible' variables which can be fixed.
18 */
19 class Variable{
20 private:
21 Simulation *sim;
22 struct var_variable *var;
23
24 public:
25 Variable();
26 Variable(const Variable &old);
27 Variable(Simulation *sim, var_variable *var);
28
29 const std::string getName() const;
30 const double getValue() const;
31 };
32
33 #endif

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