PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Public Member Functions | List of all members
PropWare::YesNoComparator Class Reference

Determine if the user answered positively or negatively. More...

#include <PropWare/utility/comparator.h>

+ Inheritance diagram for PropWare::YesNoComparator:
+ Collaboration diagram for PropWare::YesNoComparator:

Public Member Functions

 YesNoComparator ()
 Required default constructor.
 
virtual bool valid (const char *userInput) const
 Determines if the given argument is valid.
 

Detailed Description

Determine if the user answered positively or negatively.

Accepts yes, no, n, and y. Input string is set to lowercase to allow for a case-insensitive comparison.

Definition at line 71 of file comparator.h.


The documentation for this class was generated from the following file: