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

Contents of /trunk/pygtk/units.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 966 - (show annotations) (download) (as text)
Thu Dec 14 14:04:54 2006 UTC (13 years, 10 months ago) by johnpye
File MIME type: text/x-chdr
File size: 638 byte(s)
Cleaned up code comments in units.h
Fixed a bug with starting timesteps in LSODE (i think)
Added function to output a SampleList to the console (for debugging)
Removed debug output from base/generic/test/SConscript.
Removed 'custom' headers for UnitsM in ascpy.i
Made a sane default ctor for UnitsM
Added some more test cases to the Python unittest suite (still a problem running multiple solver-based tests in a single run)
1 #ifndef ASCXX_UNITS_H
2 #define ASCXX_UNITS_H
3
4 #include "config.h"
5 extern "C"{
6 #include <utilities/ascConfig.h>
7 #include <compiler/fractions.h>
8 #include <compiler/compiler.h>
9 #include <compiler/dimen.h>
10 #include <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 };
35
36 #endif

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