43 static const tk::String Float2Str(
50 return cli_Str.GetString();
54 Float::Float(
const double D_DefaultValue,
const double D_MinValue,
const double D_MaxValue)
55 :
Line(Float2Str(D_DefaultValue), -1, -1),
56 m_dDefaultValue(D_DefaultValue), m_dMinValue(D_MinValue), m_dMaxValue(D_MaxValue)
61 :
Line(CLI_ParentContext, Float2Str(D_DefaultValue), -1, -1),
62 m_dDefaultValue(D_DefaultValue), m_dMinValue(D_MinValue), m_dMaxValue(D_MaxValue)
75 return (
double) cli_Float;
78 return m_dDefaultValue;
Main namespace of the CLI library.
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.
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.
virtual void ResetToDefault(void)
Handler called when default value is required to be restored.
const double GetFloat(void) const
Float retrieval.
CmdLineEdition class definition.
void Beep(void)
Sends a beep signal.
Float parameter element class.
CLI library default pre-compiled header.
Float(const double D_DefaultValue, const double D_MinValue, const double D_MaxValue)
Top execution context constructor.
virtual void OnKey(const KEY E_KeyCode)
Handler called on character input.
#define CLI_NS_BEGIN(__ns)
Begin a namespace definition.
ParamFloat class definition.
virtual ~Float(void)
Destructor.
Object consistency insurance.
virtual void OnKey(const KEY E_KeyCode)
Handler called on character input.
virtual void ResetToDefault(void)
Handler called when default value is required to be restored.
virtual const bool SetstrValue(const char *const STR_Value) const
Value setting.