Spice simulator: more elegant approach to generating Spice device names
Code fixing Spice device names (prefixing reference with a character corresponding to the assigned device model type) that was duplicated in a few places has been moved to a function (NETLIST_EXPORTER_PSPICE::GetSpiceDevice()).
This commit is contained in:
@@ -407,6 +407,12 @@ SIM_PLOT_PANEL* SIM_PLOT_FRAME::CurrentPlot() const
|
||||
}
|
||||
|
||||
|
||||
const NETLIST_EXPORTER_PSPICE_SIM* SIM_PLOT_FRAME::GetExporter() const
|
||||
{
|
||||
return m_exporter.get();
|
||||
}
|
||||
|
||||
|
||||
void SIM_PLOT_FRAME::addPlot( const wxString& aName, SIM_PLOT_TYPE aType, const wxString& aParam )
|
||||
{
|
||||
SIM_TYPE simType = m_exporter->GetSimType();
|
||||
|
||||
Reference in New Issue
Block a user