aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/float.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c++-libbu++/src/float.h37
1 files changed, 22 insertions, 15 deletions
diff --git a/c++-libbu++/src/float.h b/c++-libbu++/src/float.h
index ba38d6c..d9a1a9a 100644
--- a/c++-libbu++/src/float.h
+++ b/c++-libbu++/src/float.h
@@ -1,3 +1,10 @@
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
1#ifndef GATS_FLOAT_H 8#ifndef GATS_FLOAT_H
2#define GATS_FLOAT_H 9#define GATS_FLOAT_H
3 10
@@ -7,25 +14,25 @@
7 14
8namespace Gats 15namespace Gats
9{ 16{
10 class Float : public Gats::Object 17 class Float : public Gats::Object
11 { 18 {
12 public: 19 public:
13 Float(); 20 Float();
14 Float( double f ); 21 Float( double f );
15 virtual ~Float(); 22 virtual ~Float();
16 23
17 virtual Object *clone() const; 24 virtual Object *clone() const;
18 25
19 virtual Type getType() const { return typeFloat; } 26 virtual Type getType() const { return typeFloat; }
20 double getValue() const { return fVal; } 27 double getValue() const { return fVal; }
21 28
22 virtual void write( Bu::Stream &rOut ) const; 29 virtual void write( Bu::Stream &rOut ) const;
23 virtual void read( Bu::Stream &rIn, char cType ); 30 virtual void read( Bu::Stream &rIn, char cType );
24 31
25 private: 32 private:
26 double fVal; 33 double fVal;
27 mutable Bu::String sWriteCache; 34 mutable Bu::String sWriteCache;
28 }; 35 };
29} 36}
30 37
31Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Float &flt ); 38Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Float &flt );