Parent Directory | Revision Log
Merging in refactor of the C++ code, which is moved out of 'pygtk' and into 'ascxx'. Adding support for IPOPT 3.9.1, the current latest version. Support in dtar for parallel builds (possibly needs some testing still).
1 | #ifndef ASCXX_UNITS_H |
2 | #define ASCXX_UNITS_H |
3 | |
4 | #include "config.h" |
5 | extern "C"{ |
6 | #include <ascend/general/platform.h> |
7 | #include <ascend/compiler/fractions.h> |
8 | #include <ascend/compiler/compiler.h> |
9 | #include <ascend/compiler/dimen.h> |
10 | #include <ascend/compiler/units.h> |
11 | } |
12 | |
13 | #include "symchar.h" |
14 | |
15 | class Dimensions; |
16 | |
17 | /** |
18 | This class will be renamed Units for use in Python |
19 | */ |
20 | class UnitsM{ |
21 | private: |
22 | const struct Units *u; |
23 | protected: |
24 | const struct Units *getInternalType() const; |
25 | |
26 | public: |
27 | UnitsM(); |
28 | UnitsM(const struct Units *u); |
29 | UnitsM(const char *units); |
30 | |
31 | const SymChar getName() const; |
32 | const Dimensions getDimensions() const; |
33 | const double getConversion() const; |
34 | const bool operator==(const UnitsM &other) const; |
35 | }; |
36 | |
37 | #endif |
john.pye@anu.edu.au | ViewVC Help |
Powered by ViewVC 1.1.22 |