#include <validate.h>
Inheritance diagram for TLookupValidator::

Public Methods | |
| TLookupValidator () | |
| virtual Boolean | isValid (const char *s) |
| virtual Boolean | lookup (const char *s) |
Static Public Methods | |
| TStreamable* | build () |
Static Public Attributes | |
| const char* const | name |
Protected Methods | |
| TLookupValidator (StreamableInit) | |
When you create a lookup validator type, you need to specify a list of valid items and override the lookup() method to return True only if the user input matches an item in that list. One example of a working descendant of TLookupValidator is TStringLookupValidator.
Definition at line 752 of file validate.h.
|
|
Undocumented. Definition at line 758 of file validate.h. |
|
|
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 TStringLookupValidator. |
|
|
Calls lookup() to find the string `s' in the list of valid input items. Returns True if lookup() returns True, meaning lookup() found `s' in its list; otherwise returns False. Reimplemented from TValidator. |
|
|
Searches for the string `s' in the list of valid entries and returns True if it finds `s'; otherwise returns False. TLookupValidator's lookup() is an abstract method that always returns False. Descendant lookup validator types must override lookup() to perform a search based on the actual list of acceptable items. Reimplemented in TStringLookupValidator. |
|
|
Undocumented. Reimplemented from TValidator. Reimplemented in TStringLookupValidator. Definition at line 781 of file validate.h. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001