KiCad PCB EDA Suite
|
Configuration object for double precision floating point numbers. More...
#include <config_params.h>
Public Member Functions | |
PARAM_CFG_DOUBLE (const wxString &ident, double *ptparam, double default_val=0.0, double min=0.0, double max=10000.0, const wxChar *group=nullptr) | |
PARAM_CFG_DOUBLE (bool Insetup, const wxString &ident, double *ptparam, double default_val=0.0, double min=0.0, double max=10000.0, const wxChar *group=nullptr) | |
virtual void | ReadParam (wxConfigBase *aConfig) const override |
Read the value of the parameter stored in aConfig. | |
virtual void | SaveParam (wxConfigBase *aConfig) const override |
Save the value of the parameter stored in aConfig. | |
Public Attributes | |
double * | m_Pt_param |
Pointer to the parameter value. | |
double | m_Default |
The default value of the parameter. | |
double | m_Min |
double | m_Max |
Minimum and maximum values of the param type. | |
wxString | m_Ident |
Keyword in config data. | |
paramcfg_id | m_Type |
Type of parameter. | |
wxString | m_Group |
Group name (this is like a path in the config data) | |
bool | m_Setup |
Install or Project based parameter, true == install. | |
wxString | m_Ident_legacy |
Configuration object for double precision floating point numbers.
Definition at line 168 of file config_params.h.
PARAM_CFG_DOUBLE::PARAM_CFG_DOUBLE | ( | const wxString & | ident, |
double * | ptparam, | ||
double | default_val = 0.0 , |
||
double | min = 0.0 , |
||
double | max = 10000.0 , |
||
const wxChar * | group = nullptr |
||
) |
Definition at line 243 of file config_params.cpp.
References m_Default, m_Max, m_Min, and m_Pt_param.
PARAM_CFG_DOUBLE::PARAM_CFG_DOUBLE | ( | bool | Insetup, |
const wxString & | ident, | ||
double * | ptparam, | ||
double | default_val = 0.0 , |
||
double | min = 0.0 , |
||
double | max = 10000.0 , |
||
const wxChar * | group = nullptr |
||
) |
Definition at line 255 of file config_params.cpp.
References m_Default, m_Max, m_Min, m_Pt_param, and PARAM_CFG::m_Setup.
|
overridevirtual |
Read the value of the parameter stored in aConfig.
aConfig | the wxConfigBase that holds the parameter. |
Reimplemented from PARAM_CFG.
Definition at line 272 of file config_params.cpp.
References m_Default, PARAM_CFG::m_Ident, m_Max, m_Min, and m_Pt_param.
|
overridevirtual |
Save the value of the parameter stored in aConfig.
aConfig | the wxConfigBase that can store the parameter. |
Reimplemented from PARAM_CFG.
Definition at line 287 of file config_params.cpp.
References ConfigBaseWriteDouble(), PARAM_CFG::m_Ident, and m_Pt_param.
double PARAM_CFG_DOUBLE::m_Default |
The default value of the parameter.
Definition at line 182 of file config_params.h.
Referenced by PARAM_CFG_DOUBLE(), and ReadParam().
|
inherited |
Group name (this is like a path in the config data)
Definition at line 102 of file config_params.h.
Referenced by PARAM_CFG::PARAM_CFG().
|
inherited |
Keyword in config data.
Definition at line 100 of file config_params.h.
Referenced by dumpParamCfg(), PARAM_CFG::PARAM_CFG(), PARAM_CFG_INT::ReadParam(), PARAM_CFG_INT_WITH_SCALE::ReadParam(), ReadParam(), PARAM_CFG_BOOL::ReadParam(), PARAM_CFG_WXSTRING::ReadParam(), PARAM_CFG_WXSTRING_SET::ReadParam(), PARAM_CFG_FILENAME::ReadParam(), PARAM_CFG_LIBNAME_LIST::ReadParam(), PARAM_CFG_INT::SaveParam(), PARAM_CFG_INT_WITH_SCALE::SaveParam(), SaveParam(), PARAM_CFG_BOOL::SaveParam(), PARAM_CFG_WXSTRING::SaveParam(), PARAM_CFG_WXSTRING_SET::SaveParam(), PARAM_CFG_FILENAME::SaveParam(), and PARAM_CFG_LIBNAME_LIST::SaveParam().
|
inherited |
Definition at line 107 of file config_params.h.
Referenced by PARAM_CFG::PARAM_CFG(), PARAM_CFG_INT::ReadParam(), PARAM_CFG_INT_WITH_SCALE::ReadParam(), and PARAM_CFG_BOOL::ReadParam().
double PARAM_CFG_DOUBLE::m_Max |
Minimum and maximum values of the param type.
Definition at line 183 of file config_params.h.
Referenced by PARAM_CFG_DOUBLE(), and ReadParam().
double PARAM_CFG_DOUBLE::m_Min |
Definition at line 183 of file config_params.h.
Referenced by PARAM_CFG_DOUBLE(), and ReadParam().
double* PARAM_CFG_DOUBLE::m_Pt_param |
Pointer to the parameter value.
Definition at line 181 of file config_params.h.
Referenced by PARAM_CFG_DOUBLE(), ReadParam(), and SaveParam().
|
inherited |
Install or Project based parameter, true == install.
Definition at line 103 of file config_params.h.
Referenced by PARAM_CFG::PARAM_CFG(), PARAM_CFG_BOOL::PARAM_CFG_BOOL(), PARAM_CFG_DOUBLE(), PARAM_CFG_INT::PARAM_CFG_INT(), PARAM_CFG_WXSTRING::PARAM_CFG_WXSTRING(), and PARAM_CFG_WXSTRING_SET::PARAM_CFG_WXSTRING_SET().
|
inherited |
Type of parameter.
Definition at line 101 of file config_params.h.
Referenced by dumpParamCfg(), PARAM_CFG::PARAM_CFG(), and PARAM_CFG_INT_WITH_SCALE::PARAM_CFG_INT_WITH_SCALE().