diff options
Diffstat (limited to 'c++-qt/gats-qt/float.h')
-rw-r--r--[l---------] | c++-qt/gats-qt/float.h | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/c++-qt/gats-qt/float.h b/c++-qt/gats-qt/float.h index 6d057eb..6cc9950 120000..100644 --- a/c++-qt/gats-qt/float.h +++ b/c++-qt/gats-qt/float.h | |||
@@ -1 +1,39 @@ | |||
1 | ../src/float.h \ No newline at end of file | 1 | /* |
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libgats library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | #ifndef GATS_FLOAT_H | ||
9 | #define GATS_FLOAT_H | ||
10 | |||
11 | #include "gats-qt/object.h" | ||
12 | |||
13 | namespace Gats | ||
14 | { | ||
15 | class Float : public Gats::Object | ||
16 | { | ||
17 | Q_OBJECT; | ||
18 | public: | ||
19 | Float(); | ||
20 | Float( double f ); | ||
21 | virtual ~Float(); | ||
22 | |||
23 | virtual Object *clone() const; | ||
24 | |||
25 | virtual Type getType() const { return typeFloat; } | ||
26 | double getValue() const { return fVal; } | ||
27 | |||
28 | virtual void write( QIODevice &rOut ) const; | ||
29 | virtual void read( QIODevice &rIn, char cType ); | ||
30 | |||
31 | private: | ||
32 | double fVal; | ||
33 | mutable QByteArray sWriteCache; | ||
34 | }; | ||
35 | } | ||
36 | |||
37 | //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Float &flt ); | ||
38 | |||
39 | #endif | ||