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

Contents of /trunk/pygtk/units.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download) (as text)
Mon Apr 24 02:23:08 2006 UTC (14 years, 1 month ago) by johnpye
File MIME type: text/x-chdr
File size: 626 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_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 public:
24 UnitsM();
25 UnitsM(const struct Units *u);
26 UnitsM(const char *units);
27
28 const struct Units *getInternalType() const;
29 const SymChar getName() const;
30 const Dimensions getDimensions() const;
31 const double getConversion() const;
32 };
33
34 #endif

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