/[ascend]/trunk/pygtk/solverparameter.h
ViewVC logotype

Contents of /trunk/pygtk/solverparameter.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download) (as text)
Mon Apr 24 02:23:08 2006 UTC (13 years, 11 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1444 byte(s)
Removed 'interface' directory in trunk/pygtk/interface (moved everything up a level)
Made corresponding changes to SCons* and spec files.
1 #ifndef ASCXX_SOLVER_PARAMETER_H
2 #define ASCXX_SOLVER_PARAMETER_H
3
4 #include <string>
5 #include <vector>
6
7 #include "config.h"
8 extern "C"{
9 #include <stdio.h>
10 #include "utilities/ascConfig.h"
11 #include "solver/slv_types.h"
12 #include "solver/rel.h"
13 #include "solver/logrel.h"
14 #include "solver/mtx.h"
15 #include "general/list.h"
16 #include "solver/slv_common.h"
17 }
18
19 class SolverParameter{
20 private:
21 struct slv_parameter *p;
22
23 public:
24 explicit SolverParameter(slv_parameter *);
25
26 const std::string getName() const;
27 const std::string getDescription() const;
28 const std::string getLabel() const;
29 const int &getNumber() const;
30 const int &getPage() const;
31
32 const bool isInt() const;
33 const bool isBool() const;
34 const bool isStr() const;
35 const bool isReal() const;
36
37 // The following throw execeptions unless the parameter type is correct
38 const int &getIntValue() const;
39 const int &getIntLowerBound() const;
40 const int &getIntUpperBound() const;
41 void setIntValue(const int&);
42
43 const bool getBoolValue() const;
44 void setBoolValue(const bool&);
45
46 const std::string getStrValue() const;
47 const std::vector<std::string> getStrOptions() const;
48 void setStrValue(const std::string &);
49 void setStrOption(const int &opt);
50
51 const double &getRealValue() const;
52 const double &getRealLowerBound() const;
53 const double &getRealUpperBound() const;
54 void setRealValue(const double&);
55
56 const bool isBounded() const;
57
58 const std::string toString() const;
59 };
60
61 #endif

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