27#include <pegtl/contrib/parse_tree.hpp>
51 return fmt::format(
"alter @{}={:g}",
66 case TYPE::R:
AddParam( resistor );
break;
67 case TYPE::C:
AddParam( capacitor );
break;
68 case TYPE::L:
AddParam( inductor );
break;
70 wxFAIL_MSG(
"Unhandled SIM_MODEL type in SIM_MODEL_IDEAL" );
76 const std::string& aDescription,
77 const std::string& aUnit )
static PARAM::INFO makeParamInfo(const std::string &aName, const std::string &aDescription, const std::string &aUnit)
SIM_MODEL_IDEAL(TYPE aType)
void AddParam(const PARAM::INFO &aInfo)
const SPICE_GENERATOR & SpiceGenerator() const
virtual const PARAM & GetParam(unsigned aParamIndex) const
static std::string ToSpice(const std::string &aString)
std::string TunerCommand(const SPICE_ITEM &aItem, double aValue) const override
std::string ModelLine(const SPICE_ITEM &aItem) const override
std::string ItemLine(const SPICE_ITEM &aItem) const override
virtual std::string ItemName(const SPICE_ITEM &aItem) const
virtual std::string ItemLine(const SPICE_ITEM &aItem) const
const SIM_MODEL & m_model