1 |
/* ASCEND modelling environment |
2 |
Copyright (C) 2010 Carnegie Mellon University |
3 |
|
4 |
This program is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
6 |
the Free Software Foundation; either version 2, or (at your option) |
7 |
any later version. |
8 |
|
9 |
This program is distributed in the hope that it will be useful, |
10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 |
GNU General Public License for more details. |
13 |
|
14 |
You should have received a copy of the GNU General Public License |
15 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 |
*//** @file |
17 |
Wrapper class for the 'value_t' from the C API. This class includes |
18 |
support for |
19 |
|
20 |
See also SlvReqHooks in ascend/compiler/slvreq.h. |
21 |
*/ |
22 |
|
23 |
#ifndef ASCXX_VALUE_H |
24 |
#define ASCXX_VALUE_H |
25 |
|
26 |
struct value_t; |
27 |
class SolverParameter; |
28 |
|
29 |
typedef enum{ |
30 |
VALUE_INT, VALUE_REAL, VALUE_BOOL, VALUE_CHAR |
31 |
} ValueType; |
32 |
|
33 |
class Value{ |
34 |
friend class SolverParameter; |
35 |
protected: |
36 |
const value_t *v; |
37 |
public: |
38 |
Value(); |
39 |
Value(const value_t *val); |
40 |
~Value(); |
41 |
ValueType getType(); |
42 |
}; |
43 |
|
44 |
#endif |