00001 // RealValue.h 00002 00003 #ifndef REALVALUE_H 00004 #define REALVALUE_H 00005 00006 #include "Value.h" 00007 00008 namespace Yosokumo 00009 { 00010 00011 /** 00012 * Represents a floating-point value. 00013 */ 00014 class RealValue : public Value 00015 { 00016 public: 00017 /** 00018 * Instantiate a RealValue and assign it a value. 00019 * 00020 * @param value the value to assign to the new RealValue object. 00021 */ 00022 RealValue(double value); 00023 00024 /** 00025 * Return the real value stored in this object. 00026 * 00027 * @return the real value. 00028 */ 00029 double getValue() const; 00030 00031 /** 00032 * Return the real value as a string. 00033 * 00034 * @return the real value as a string. 00035 */ 00036 virtual std::string toString() const; 00037 00038 }; // end class RealValue 00039 00040 } // end namespace Yosokumo 00041 00042 #endif // REALVALUE_H 00043 00044 // end RealValue.h