diff options
Diffstat (limited to 'src/float.h')
-rw-r--r-- | src/float.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/float.h b/src/float.h index cf20010..1b3a06a 100644 --- a/src/float.h +++ b/src/float.h | |||
@@ -1,16 +1,25 @@ | |||
1 | #ifndef GATS_FLOAT_H | 1 | #ifndef GATS_FLOAT_H |
2 | #define GATS_FLOAT_H | 2 | #define GATS_FLOAT_H |
3 | 3 | ||
4 | #include "gats/object.h" | ||
5 | |||
4 | namespace Gats | 6 | namespace Gats |
5 | { | 7 | { |
6 | class Float | 8 | class Float : public Gats::Object |
7 | { | 9 | { |
8 | public: | 10 | public: |
9 | Float(); | 11 | Float(); |
10 | Float( double f ); | 12 | Float( double f ); |
11 | virtual ~Float(); | 13 | virtual ~Float(); |
12 | 14 | ||
15 | virtual Type getType() const { return typeFloat; } | ||
16 | double getValue() const { return fVal; } | ||
17 | |||
18 | virtual void write( Bu::Stream &rOut ) const; | ||
19 | virtual void read( Bu::Stream &rIn, char cType ); | ||
20 | |||
13 | private: | 21 | private: |
22 | double fVal; | ||
14 | }; | 23 | }; |
15 | } | 24 | } |
16 | 25 | ||