KiCad PCB EDA Suite
|
#include <sim_model_source.h>
Public Member Functions | |
SIM_MODEL_SERIALIZER (SIM_MODEL &aModel) | |
std::string | GenerateDevice () const |
std::string | GenerateDeviceSubtype () const |
std::string | GenerateValue () const |
std::string | GenerateParams () const |
std::string | GeneratePins () const |
std::string | GenerateEnable () const |
void | ParseValue (const std::string &aValue) |
bool | ParseParams (const std::string &aParams) |
void | ParsePins (const std::string &aPins) |
void | ParseEnable (const std::string &aEnable) |
Static Public Attributes | |
static constexpr auto | REFERENCE_FIELD = "Reference" |
static constexpr auto | VALUE_FIELD = "Value" |
Protected Member Functions | |
std::string | generateParamValuePair (const SIM_MODEL::PARAM &aParam) const |
Private Attributes | |
SIM_MODEL & | m_model |
Definition at line 64 of file sim_model_source.h.
|
inherited |
Definition at line 58 of file sim_model_serializer.cpp.
References SIM_MODEL::GetDeviceInfo(), and SIM_MODEL_SERIALIZER::m_model.
|
inherited |
Definition at line 64 of file sim_model_serializer.cpp.
References SIM_MODEL::GetTypeInfo(), and SIM_MODEL_SERIALIZER::m_model.
|
inherited |
Definition at line 156 of file sim_model_serializer.cpp.
References SIM_MODEL::IsEnabled(), and SIM_MODEL_SERIALIZER::m_model.
|
inherited |
Definition at line 82 of file sim_model_serializer.cpp.
References SIM_MODEL_SERIALIZER::generateParamValuePair(), SIM_MODEL::GetBaseModel(), SIM_MODEL::GetParam(), SIM_MODEL::GetParamCount(), SIM_MODEL::GetParamOverride(), SIM_MODEL::HasPrimaryValue(), SIM_MODEL::IsStoredInValue(), SIM_MODEL_SERIALIZER::m_model, and SIM_MODEL::PARAM::value.
|
protectedinherited |
Definition at line 302 of file sim_model_serializer.cpp.
References SIM_MODEL::PARAM::INFO::category, SIM_MODEL::PARAM::FLAGS, SIM_MODEL::PARAM::info, name, SIM_MODEL::PARAM::INFO::name, and SIM_MODEL::PARAM::value.
Referenced by SIM_MODEL_SERIALIZER::GenerateParams().
|
inherited |
Definition at line 124 of file sim_model_serializer.cpp.
References SIM_MODEL::GetPins(), SIM_MODEL_SERIALIZER::m_model, and pin.
Referenced by SIM_MODEL::MigrateSimModel().
|
inherited |
Definition at line 70 of file sim_model_serializer.cpp.
References SIM_MODEL::GetDeviceInfo(), SIM_MODEL::GetParamOverride(), and SIM_MODEL_SERIALIZER::m_model.
|
inherited |
Definition at line 290 of file sim_model_serializer.cpp.
References SIM_MODEL_SERIALIZER::m_model, and SIM_MODEL::SetIsEnabled().
|
inherited |
Definition at line 193 of file sim_model_serializer.cpp.
References SIM_MODEL::GetParam(), SIM_MODEL::HasAutofill(), SIM_MODEL::HasPrimaryValue(), SIM_MODEL_SERIALIZER::m_model, SIM_MODEL::PARAM::Matches(), SIM_MODEL::SetParamValue(), SIM_VALUE_GRAMMAR::SI, and THROW_IO_ERROR.
|
inherited |
Definition at line 259 of file sim_model_serializer.cpp.
References SIM_MODEL::AssignSymbolPinNumberToModelPin(), SIM_MODEL_SERIALIZER::m_model, and THROW_IO_ERROR.
|
inherited |
Definition at line 162 of file sim_model_serializer.cpp.
References SIM_MODEL_SERIALIZER::m_model, SIM_MODEL::SetIsStoredInValue(), SIM_MODEL::SetParamValue(), THROW_IO_ERROR, and SIM_VALUE::TYPE_FLOAT.
|
inline |
Definition at line 126 of file sim_model_serializer.h.
|
privateinherited |
Definition at line 144 of file sim_model_serializer.h.
Referenced by SIM_MODEL_SERIALIZER::GenerateDevice(), SIM_MODEL_SERIALIZER::GenerateDeviceSubtype(), SIM_MODEL_SERIALIZER::GenerateEnable(), SIM_MODEL_SERIALIZER::GenerateParams(), SIM_MODEL_SERIALIZER::GeneratePins(), SIM_MODEL_SERIALIZER::GenerateValue(), SIM_MODEL_SERIALIZER::ParseEnable(), SIM_MODEL_SERIALIZER::ParseParams(), SIM_MODEL_SERIALIZER::ParsePins(), and SIM_MODEL_SERIALIZER::ParseValue().
|
staticconstexprinherited |
Definition at line 122 of file sim_model_serializer.h.
|
staticconstexprinherited |
Definition at line 123 of file sim_model_serializer.h.