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