12#include <owl/validate.rh>
32 ValidChars = validChars;
44 for (LPTSTR p = str; *p; ) {
46 if (n > 1 || !ValidChars.Has(
static_cast<tchar>(*p)))
61 for (LPCTSTR p = str; *p;) {
63 if (n > 1 || !ValidChars.Has(
static_cast<tchar>(*p)))
84#if OWL_PERSISTENT_STREAMS
93 is >> GetObject()->ValidChars;
101TFilterValidator::Streamer::Write(opstream& os)
const
104 os << GetObject()->ValidChars;
Definition of class TAppDictionary.
Definition of class TApplication.
#define PRECONDITION(condition)
Derived from TBitSet, TCharSet sets and clears bytes for a group of characters.
A streamable class, TFilterValidator checks an input field as the user types into it.
TFilterValidator(const TCharSet &validChars)
Let the compiler know that the following template instances will be defined elsewhere.
void Error(TWindow *owner)
Error overrides TValidator's virtual function and displays a message box indicating that the text str...
bool IsValid(LPCTSTR str)
IsValid overrides TValidator's virtuals and returns true if all characters in str are in the set of a...
bool IsValidInput(TCHAR *str, bool suppressFill)
IsValidInput overrides TValidator's virtual function and checks each character in the string str to e...
A streamable class, TValidator defines an abstract data validation object.
TValidator()
Constructs an abstract validator object and sets Options fields to 0.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
tstring LoadString(uint id) const
int MessageBox(LPCTSTR text, LPCTSTR caption=0, uint flags=MB_OK) const
Displays a message in a modal pop-up dialog box.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Definition of class TFrameWindow.
void ReadBaseObject(Base *base, ipstream &in)
void WriteBaseObject(Base *base, opstream &out)
UINT CharSize(const TCHAR *s)
Return the number of bytes of the first character of the passed string.
Object Windows Library (OWLNext Core).
IMPLEMENT_STREAMABLE1(TApplication, TModule)