Public Member Functions | List of all members
sf::ui::Format Class Referenceabstract

The abstract class that defines format of various types, such as ints, double, objects ... More...

#include <Format.hpp>

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

Public Member Functions

virtual sf::String toString () const =0
 
virtual bool isAllowed (sf::String str) const =0
 
virtual void parse (sf::String str)=0
 parse the string to this format, and update the value More...
 

Detailed Description

The abstract class that defines format of various types, such as ints, double, objects ...

Definition at line 28 of file Format.hpp.

Member Function Documentation

virtual bool sf::ui::Format::isAllowed ( sf::String  str) const
pure virtual
Returns
if the given string matches with this format
Parameters
strthe string to test

Implemented in sf::ui::DoubleFormat, sf::ui::LongFormat, and sf::ui::UnsignedLongFormat.

virtual void sf::ui::Format::parse ( sf::String  str)
pure virtual

parse the string to this format, and update the value

Parameters
strthe string parsed

Implemented in sf::ui::DoubleFormat, sf::ui::LongFormat, and sf::ui::UnsignedLongFormat.

virtual sf::String sf::ui::Format::toString ( ) const
pure virtual
Returns
the string with the value in this format

Implemented in sf::ui::DoubleFormat, sf::ui::LongFormat, and sf::ui::UnsignedLongFormat.


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