KiCad PCB EDA Suite
|
#include <sim_value.h>
Public Types | |
enum | TYPE { TYPE_BOOL , TYPE_INT , TYPE_FLOAT , TYPE_COMPLEX , TYPE_STRING , TYPE_BOOL_VECTOR , TYPE_INT_VECTOR , TYPE_FLOAT_VECTOR , TYPE_COMPLEX_VECTOR } |
using | NOTATION = SIM_VALUE_GRAMMAR::NOTATION |
Static Public Member Functions | |
static std::string | ConvertNotation (const std::string &aString, NOTATION aFromNotation, NOTATION aToNotation) |
static std::string | Normalize (double aValue) |
static std::string | ToSpice (const std::string &aString) |
static double | ToDouble (const std::string &aString, double aDefault=NAN) |
static int | ToInt (const std::string &aString, int aDefault=-1) |
static bool | Equal (double aLH, const std::string &aRH) |
Definition at line 58 of file sim_value.h.
Definition at line 61 of file sim_value.h.
enum SIM_VALUE::TYPE |
Enumerator | |
---|---|
TYPE_BOOL | |
TYPE_INT | |
TYPE_FLOAT | |
TYPE_COMPLEX | |
TYPE_STRING | |
TYPE_BOOL_VECTOR | |
TYPE_INT_VECTOR | |
TYPE_FLOAT_VECTOR | |
TYPE_COMPLEX_VECTOR |
Definition at line 65 of file sim_value.h.
|
static |
Definition at line 370 of file sim_value.cpp.
References SIM_VALUE_PARSER::PARSE_RESULT::exponent, SIM_VALUE_PARSER::ExponentToUnitPrefix(), SIM_VALUE_PARSER::PARSE_RESULT::isEmpty, SIM_VALUE_PARSER::PARSE_RESULT::isOk, SIM_VALUE_PARSER::Parse(), SIM_VALUE_PARSER::PARSE_RESULT::significand, and SIM_VALUE_PARSER::PARSE_RESULT::unitPrefixExponent.
Referenced by SIM_MODEL::SetParamValue(), and ToSpice().
|
static |
Definition at line 487 of file sim_value.cpp.
References std::abs(), and ToDouble().
Referenced by SIM_STRING_PROPERTY::OnEvent(), and SIM_STRING_PROPERTY::StringToValue().
|
static |
Definition at line 406 of file sim_value.cpp.
References std::abs(), and SIM_VALUE_PARSER::ExponentToUnitPrefix().
Referenced by SIM_MODEL::requiresSpiceModelLine(), DIALOG_SIM_COMMAND::SetPlotSettings(), and SIM_STRING_PROPERTY::StringToValue().
|
static |
Definition at line 442 of file sim_value.cpp.
References SIM_VALUE_PARSER::PARSE_RESULT::exponent, SIM_VALUE_PARSER::PARSE_RESULT::isEmpty, SIM_VALUE_PARSER::PARSE_RESULT::isOk, SIM_VALUE_PARSER::Parse(), SIM_VALUE_PARSER::PARSE_RESULT::significand, and SIM_VALUE_PARSER::PARSE_RESULT::unitPrefixExponent.
Referenced by DIALOG_SIM_COMMAND::ApplySettings(), Equal(), SPICE_GENERATOR_IBIS::IbisDevice(), SPICE_GENERATOR_TLINE::ModelLine(), SIM_STRING_PROPERTY::OnEvent(), SIM_MODEL::requiresSpiceModelLine(), and SIM_STRING_PROPERTY::StringToValue().
|
static |
Definition at line 467 of file sim_value.cpp.
References SIM_VALUE_PARSER::PARSE_RESULT::exponent, SIM_VALUE_PARSER::PARSE_RESULT::fracPart, SIM_VALUE_PARSER::PARSE_RESULT::intPart, SIM_VALUE_PARSER::PARSE_RESULT::isEmpty, SIM_VALUE_PARSER::PARSE_RESULT::isOk, SIM_VALUE_PARSER::Parse(), and SIM_VALUE_PARSER::PARSE_RESULT::unitPrefixExponent.
Referenced by SPICE_GENERATOR_IBIS::IbisDevice().
|
static |
Definition at line 419 of file sim_value.cpp.
References ConvertNotation().
Referenced by SPICE_GENERATOR_SOURCE::getParamValueString(), SPICE_GENERATOR_BEHAVIORAL::ItemLine(), SPICE_GENERATOR_IDEAL::ItemLine(), SPICE_GENERATOR_SOURCE::ItemLine(), SPICE_GENERATOR::ItemParams(), SPICE_GENERATOR_L_MUTUAL::ItemParams(), SPICE_GENERATOR_RAW_SPICE::ItemParams(), SPICE_GENERATOR::ModelLine(), SPICE_GENERATOR_R_POT::ModelLine(), SPICE_GENERATOR_TLINE::ModelLine(), SIMULATOR_FRAME_UI::rebuildSignalsList(), and TUNER_SLIDER::TUNER_SLIDER().