#include <validate.h>
Inheritance diagram for TFilterValidator::
Public Methods | |
TFilterValidator (const char *aValidChars) | |
~TFilterValidator () | |
virtual void | error () |
virtual Boolean | isValidInput (char *s, Boolean suppressFill) |
virtual Boolean | isValid (const char *s) |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TFilterValidator (StreamableInit) | |
virtual void | write (opstream &os) |
virtual void* | read (ipstream &is) |
Protected Attributes | |
char* | validChars |
If the user types any other character, the validator indicates that the input is invalid.
Definition at line 502 of file validate.h.
|
Constructs a filter validator object by first calling the constructor inherited from TValidator, then setting validChars data member to `aValidChars'. |
|
Undocumented. |
|
Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
Called to create an object in certain stream-reading situations. Reimplemented from TValidator. Reimplemented in TRangeValidator. |
|
Undocumented. Reimplemented from TValidator. Reimplemented in TRangeValidator. |
|
Checks each character in the string `s' to make sure it is in the set of allowed characters, validChars. Returns True if all characters in `s' are valid; otherwise returns False. Reimplemented from TValidator. Reimplemented in TRangeValidator. |
|
Checks each character in the string `s' to make sure it is in the set of allowed characters, validChars. Returns True if all characters in `s' are valid; otherwise returns False. Reimplemented from TValidator. |
|
Reads from the input stream `is'. Reimplemented from TValidator. Reimplemented in TRangeValidator. |
|
Writes to the output stream `os'. Reimplemented from TValidator. Reimplemented in TRangeValidator. |
|
Undocumented. Reimplemented from TValidator. Reimplemented in TRangeValidator. Definition at line 567 of file validate.h. |
|
Contains the set of all characters the user can type. For example, to allow only numeric digits, set validChars to ['0'..'9']. validChars is set by the `aValidChars' parameter passed to the constructor. Definition at line 553 of file validate.h. |