Public Member Functions | Protected Attributes | List of all members
sf::ui::DoubleFormat Class Reference

Format to parse double

. More...

#include <DoubleFormat.hpp>

Inheritance diagram for sf::ui::DoubleFormat:
sf::ui::Format

Public Member Functions

 DoubleFormat ()
 Creates a double format. More...
 
virtual sf::String toString () const
 
virtual bool isAllowed (sf::String str) const
 
virtual void parse (sf::String str)
 parse the string to this format, and update the value More...
 
void setValue (double value)
 
double getValue () const
 

Protected Attributes

double m_value
 

Detailed Description

Format to parse double

.

Definition at line 28 of file DoubleFormat.hpp.

Constructor & Destructor Documentation

sf::ui::DoubleFormat::DoubleFormat ( )

Creates a double format.

Member Function Documentation

double sf::ui::DoubleFormat::getValue ( ) const
Returns
the value of the last string parsed as a double
virtual bool sf::ui::DoubleFormat::isAllowed ( sf::String  str) const
virtual
Returns
if the given string matches with this format
Parameters
strthe string to test

Implements sf::ui::Format.

virtual void sf::ui::DoubleFormat::parse ( sf::String  str)
virtual

parse the string to this format, and update the value

Parameters
strthe string parsed

Implements sf::ui::Format.

void sf::ui::DoubleFormat::setValue ( double  value)
Parameters
valuethe new value
virtual sf::String sf::ui::DoubleFormat::toString ( ) const
virtual
Returns
the string with the value in this format

Implements sf::ui::Format.


The documentation for this class was generated from the following file: