39 static const tk::Queue<ResourceString>& GetYesNoChoice(
void)
42 static tk::Queue<ResourceString> tk_YesNo(2);
43 if (tk_YesNo.IsEmpty())
59 :
Choice(B_DefaultAnswer ? 0 : 1, GetYesNoChoice())
64 :
Choice(CLI_ParentContext, B_DefaultAnswer ? 0 : 1, GetYesNoChoice())
Main namespace of the CLI library.
#define CLI_NS_END(__ns)
End a namespace definition.
virtual void OnKey(const KEY E_KeyCode)
Handler called on character input.
CLI library default pre-compiled header.
Choice user interface class.
YesNo(const bool B_DefaultAnswer)
Top execution context constructor.
#define CLI_NS_BEGIN(__ns)
Begin a namespace definition.
virtual ~YesNo(void)
Destructor.
virtual void OnKey(const KEY E_KeyCode)
Handler called on character input.
const int GetChoice(void) const
Choice retrieval.
const bool GetYesNo(void) const
Yes/No answer retrieval.