SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scv::TextFilter Class Reference

A class that can be associated with a TextBox or a TextField to filter some characters. More...

#include <TextFilter.h>

Public Member Functions

 TextFilter (void)
 
void allowAll (void)
 Causes the filter does not filter anything.
 
void allowNumbers (void)
 Causes the filter just allows numbers.
 
void allowLetters (void)
 Causes the filter just allows letters.
 
void allowThese (const std::string &filter)
 Causes the filter also allows the characters specified in the argument.
 
void denyAll (void)
 Causes the filter allows nothing.
 
void denyNumbers (void)
 Causes the filter to filter numbers.
 
void denyLetters (void)
 Causes the filter to filter letters.
 
void denyThese (const std::string &filter)
 Causes the filter to filter the characters specified in the argument.
 
bool checkFilter (char character)
 Test if a character is filtered by the filter.
 

Detailed Description

A class that can be associated with a TextBox or a TextField to filter some characters.

Constructor & Destructor Documentation

scv::TextFilter::TextFilter ( void  )

Member Function Documentation

void scv::TextFilter::allowAll ( void  )

Causes the filter does not filter anything.

void scv::TextFilter::allowLetters ( void  )

Causes the filter just allows letters.

void scv::TextFilter::allowNumbers ( void  )

Causes the filter just allows numbers.

void scv::TextFilter::allowThese ( const std::string &  filter)

Causes the filter also allows the characters specified in the argument.

Parameters
filterCharacters that the filter will allow.
bool scv::TextFilter::checkFilter ( char  character)

Test if a character is filtered by the filter.

Parameters
characterCharacter to be tested.
void scv::TextFilter::denyAll ( void  )

Causes the filter allows nothing.

void scv::TextFilter::denyLetters ( void  )

Causes the filter to filter letters.

void scv::TextFilter::denyNumbers ( void  )

Causes the filter to filter numbers.

void scv::TextFilter::denyThese ( const std::string &  filter)

Causes the filter to filter the characters specified in the argument.

Parameters
filterCharacters that the filter will deny.

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