 |
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Go to the documentation of this file.
43 virtual bool valid (
const T *lhs)
const = 0;
61 bool valid (
const int *lhs)
const {
79 virtual bool valid (
const char *userInput)
const {
81 strcpy(buffer, userInput);
83 return 0 == strcmp(
"n", buffer) ||
84 0 == strcmp(
"no", buffer) ||
85 0 == strcmp(
"y", buffer) ||
86 0 == strcmp(
"yes", buffer);
YesNoComparator()
Required default constructor.
Determine if the user answered positively or negatively.
const PropWare::YesNoComparator YES_NO_COMP
Global instance for shared use by PropWare applications.
bool valid(const int *lhs) const
Determines if the given argument is valid.
const PropWare::NonNegativeIntegerComparator NON_NEGATIVE_COMP
Global instance for shared use by PropWare applications.
virtual bool valid(const T *lhs) const =0
Determines if the given argument is valid.
Also known as whole numbers, this class will only allow numbers that are zero or greater with no frac...
static void to_lower(char string[])
Convert each alphabetical character in a null-terminated character array to lowercase letters.
Provide a way for a PropWare::Scanner to sanitize user input.
virtual bool valid(const char *userInput) const
Determines if the given argument is valid.
NonNegativeIntegerComparator()
Required default constructor.
Generic definitions and functions for the Parallax Propeller.