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

Format to parse long (stored as sf::Int64)

. More...

#include <LongFormat.hpp>

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

Public Member Functions

 LongFormat ()
 Creates a long 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 (sf::Int64 value)
 
sf::Int64 getValue () const
 

Protected Attributes

sf::Int64 m_value
 

Detailed Description

Format to parse long (stored as sf::Int64)

.

Definition at line 28 of file LongFormat.hpp.

Constructor & Destructor Documentation

sf::ui::LongFormat::LongFormat ( )

Creates a long format.

Member Function Documentation

sf::Int64 sf::ui::LongFormat::getValue ( ) const
Returns
the value of the last string parsed
virtual bool sf::ui::LongFormat::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::LongFormat::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::LongFormat::setValue ( sf::Int64  value)
Parameters
valuethe new value
virtual sf::String sf::ui::LongFormat::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: