1*fce4895dSRene Gollent /* 2*fce4895dSRene Gollent * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3*fce4895dSRene Gollent * Distributed under the terms of the MIT License. 4*fce4895dSRene Gollent */ 5*fce4895dSRene Gollent #ifndef FLOAT_VALUE_H 6*fce4895dSRene Gollent #define FLOAT_VALUE_H 7*fce4895dSRene Gollent 8*fce4895dSRene Gollent 9*fce4895dSRene Gollent #include "Value.h" 10*fce4895dSRene Gollent 11*fce4895dSRene Gollent 12*fce4895dSRene Gollent class FloatValue : public Value { 13*fce4895dSRene Gollent public: 14*fce4895dSRene Gollent FloatValue(const BVariant& value); 15*fce4895dSRene Gollent virtual ~FloatValue(); 16*fce4895dSRene Gollent GetValue()17*fce4895dSRene Gollent BVariant GetValue() const 18*fce4895dSRene Gollent { return fValue; } 19*fce4895dSRene Gollent 20*fce4895dSRene Gollent virtual bool ToString(BString& _string) const; 21*fce4895dSRene Gollent virtual bool ToVariant(BVariant& _value) const; 22*fce4895dSRene Gollent 23*fce4895dSRene Gollent virtual bool operator==(const Value& other) const; 24*fce4895dSRene Gollent 25*fce4895dSRene Gollent private: 26*fce4895dSRene Gollent BVariant fValue; 27*fce4895dSRene Gollent }; 28*fce4895dSRene Gollent 29*fce4895dSRene Gollent 30*fce4895dSRene Gollent #endif // FLOAT_VALUE_H 31