12#include <owl/validate.rh>
44 for (
LPTSTR p = str; *p; ) {
46 if (
n > 1 || !ValidChars.
Has(
static_cast<tchar>(*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)
bool Has(T item) const
Return true if a bit is turned on.
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.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
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)
#define IMPLEMENT_STREAMABLE1(cls, base1)
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)