43 static const tk::String Int2Str(
50 return cli_Str.GetString();
54 Int::Int(
const int I_DefaultValue,
const int I_MinValue,
const int I_MaxValue)
55 :
Line(Int2Str(I_DefaultValue), -1, -1),
56 m_iDefaultValue(I_DefaultValue), m_iMinValue(I_MinValue), m_iMaxValue(I_MaxValue)
61 :
Line(CLI_ParentContext, Int2Str(I_DefaultValue), -1, -1),
62 m_iDefaultValue(I_DefaultValue), m_iMinValue(I_MinValue), m_iMaxValue(I_MaxValue)
78 return m_iDefaultValue;
94 if (
GetInt() < m_iMinValue)
100 else if (
GetInt() < m_iMaxValue)
112 if (
GetInt() > m_iMaxValue)
118 else if (
GetInt() > m_iMinValue)
130 if (
GetInt() >= m_iMaxValue)
139 if (
GetInt() <= m_iMinValue)
148 if ((
GetInt() >= m_iMinValue) && (
GetInt() <= m_iMaxValue))
Main namespace of the CLI library.
Integer parameter element class.
virtual void OnKey(const KEY E_KeyCode)
Handler called on character input.
const tk::String GetLine(void) const
Line retrieval.
Simple line user interface object.
void SetLine(const tk::String &TK_Line, const bool B_NewLine, const bool B_CleanOnTyping)
Protected line setter for child classes.
virtual ~Int(void)
Destructor.
String device definition.
#define CLI_NS_END(__ns)
End a namespace definition.
void EndControl(const bool B_ExecResult)
Method to call by child classes in order to end the control execution.
const int GetInt(void) const
Integer retrieval.
ParamInt class definition.
CmdLineEdition class definition.
void Beep(void)
Sends a beep signal.
virtual void ResetToDefault(void)
Handler called when default value is required to be restored.
CLI library default pre-compiled header.
#define CLI_NS_BEGIN(__ns)
Begin a namespace definition.
Int(const int I_DefaultValue, const int I_MinValue, const int I_MaxValue)
Top execution context constructor.
Object consistency insurance.
virtual void OnKey(const KEY E_KeyCode)
Handler called on character input.
virtual const bool SetstrValue(const char *const STR_Value) const
Value setting.
virtual void ResetToDefault(void)
Handler called when default value is required to be restored.