aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/float.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c++-qt/src/float.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/c++-qt/src/float.h b/c++-qt/src/float.h
new file mode 100644
index 0000000..74225aa
--- /dev/null
+++ b/c++-qt/src/float.h
@@ -0,0 +1,30 @@
1#ifndef GATS_FLOAT_H
2#define GATS_FLOAT_H
3
4#include "gats-qt/object.h"
5
6namespace Gats
7{
8 class Float : public Gats::Object
9 {
10 Q_OBJECT;
11 public:
12 Float();
13 Float( double f );
14 virtual ~Float();
15
16 virtual Type getType() const { return typeFloat; }
17 double getValue() const { return fVal; }
18
19 virtual void write( QIODevice &rOut ) const;
20 virtual void read( QIODevice &rIn, char cType );
21
22 private:
23 double fVal;
24 mutable QByteArray sWriteCache;
25 };
26}
27
28//Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Float &flt );
29
30#endif