36 static std::shared_ptr<SPICE_SIMULATOR> ngspiceInstance;
38 if( !ngspiceInstance )
39 ngspiceInstance = std::make_shared<NGSPICE>();
41 return ngspiceInstance;
43 catch( std::exception& e )
57 return aShortName ? wxString( wxT(
"OP" ) )
58 :
_(
"Operating Point" );
64 return aShortName ? wxString( wxT(
"DC" ) )
68 return aShortName ? wxString( wxT(
"TRAN" ) )
72 return aShortName ? wxString( wxT(
"DISTO" ) )
76 return aShortName ? wxString( wxT(
"NOISE" ) )
80 return aShortName ? wxString( wxT(
"PZ" ) )
84 return aShortName ? wxString( wxT(
"SENS" ) )
88 return aShortName ? wxString( wxT(
"TF" ) )
89 :
_(
"Transfer function" );
93 return aShortName ?
_(
"UNKNOWN!" ) :
_(
"Unknown" );
static std::shared_ptr< SPICE_SIMULATOR > CreateInstance(const std::string &aName)
static wxString TypeToName(SIM_TYPE aType, bool aShortName)
Return a string with simulation name based on enum.
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
This file is part of the common library.
SIM_TYPE
< Possible simulation types