11#include <owl/validate.rh>
171#if OWL_PERSISTENT_STREAMS
181 is >> GetObject()->Options;
189TValidator::Streamer::Write(opstream&
os)
const
191 os << GetObject()->Options;
A streamable class, TValidator defines an abstract data validation object.
uint16 Options
A bitmap member used to control options for various descendants of TValidator.
virtual uint Transfer(TCHAR *text, void *buffer, TTransferDirection direction)
Allows a validator to set and read the values of its associated edit control.
virtual ~TValidator()
Destroys an abstract validator object.
virtual bool IsValidInput(TCHAR *input, bool suppressFill)
Checks current input against validator.
virtual void Error(TWindow *owner)
Error is an abstract function called by Valid when it detects that the user has entered invalid infor...
virtual bool IsValid(LPCTSTR input)
Checks input against validator for completeness. Never modifies input.
TValidator()
Constructs an abstract validator object and sets Options fields to 0.
virtual int Adjust(tstring &text, int &begPos, int &endPos, int amount)
Adjusts the 'value' of the text, given a cursor position and an amount.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TXOwl is root class of the ObjectWindows exception hierarchy.
A nested class, TXValidator describes an exception that results from an invalid validator object.
void Throw()
Creates an instance of TXValidator and throws it.
TXValidator(uint resId=IDS_VALIDATORSYNTAX)
Constructs a TXValidator object, setting the resource ID to IDS_VALIDATORSYNTAX string resource.
static void Raise()
Creates an instance of TXValidator and throws it.
TXValidator * Clone()
Copies the exception so it can be rethrown at a safer time.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
#define IMPLEMENT_STREAMABLE(cls)
TTransferDirection
The TTransferDirection enum describes the constants that the transfer function uses to determine how ...
Definition of class TModule.
Object Windows Library (OWLNext Core)