FloatValue Class Reference

This class represents a floating point value. More...

#include <value.h>

Inheritance diagram for FloatValue:

Value List of all members.

Public Member Functions

 FloatValue ()
 Default constructor.
 FloatValue (float f)
 Construct a BoolValue with the given value.
virtual ~FloatValue ()
 Destructor is declared virtual, as it always should be.
ValueType GetType () const
 Return this instance's type.
virtual std::string AsString () const
 Gets the value as a string.
virtual long AsInt () const
 Gets the value as an int.
virtual double AsFloat () const
 Gets the value as a float.
virtual bool AsBool () const
 Gets the value as a bool.

Detailed Description

This class represents a floating point value.

Author:
Matthew Welch


Constructor & Destructor Documentation

FloatValue::FloatValue (  )  [inline]

Default constructor.

FloatValue::FloatValue ( float  f  )  [inline]

Construct a BoolValue with the given value.

Parameters:
f Value to assign to this FloatValue.

virtual FloatValue::~FloatValue (  )  [inline, virtual]

Destructor is declared virtual, as it always should be.


Member Function Documentation

ValueType FloatValue::GetType (  )  const [inline, virtual]

Return this instance's type.

Returns:
ValueType enum of this intance's type.

Implements Value.

virtual std::string FloatValue::AsString (  )  const [inline, virtual]

Gets the value as a string.

Reimplemented from Value.

virtual long FloatValue::AsInt (  )  const [inline, virtual]

Gets the value as an int.

Reimplemented from Value.

virtual double FloatValue::AsFloat (  )  const [inline, virtual]

Gets the value as a float.

Reimplemented from Value.

virtual bool FloatValue::AsBool (  )  const [inline, virtual]

Gets the value as a bool.

Reimplemented from Value.


The documentation for this class was generated from the following file:
Generated on Wed Apr 18 15:50:12 2007 for JSON Parser by  doxygen 1.5.2