37 static std::shared_ptr<SPICE_SIMULATOR> ngspiceInstance;
39 if( !ngspiceInstance )
40 ngspiceInstance = std::make_shared<NGSPICE>();
42 return ngspiceInstance;
44 catch( std::exception& e )
57 case ST_OP:
return aShortName ? wxString( wxT(
"OP" ) ) :
_(
"DC Operating Point" );
58 case ST_AC:
return aShortName ? wxString( wxT(
"AC" ) ) :
_(
"Small-Signal Analysis" );
59 case ST_DC:
return aShortName ? wxString( wxT(
"DC" ) ) :
_(
"DC Sweep Analysis" );
60 case ST_TRAN:
return aShortName ? wxString( wxT(
"TRAN" ) ) :
_(
"Transient Analysis" );
61 case ST_DISTO:
return aShortName ? wxString( wxT(
"DISTO" ) ) :
_(
"Small-Signal Distortion Analysis" );
62 case ST_NOISE:
return aShortName ? wxString( wxT(
"NOISE" ) ) :
_(
"Noise Analysis" );
63 case ST_PZ:
return aShortName ? wxString( wxT(
"PZ" ) ) :
_(
"Pole-Zero Analysis" );
64 case ST_SENS:
return aShortName ? wxString( wxT(
"SENS" ) ) :
_(
"Sensitivity Analysis" );
65 case ST_TF:
return aShortName ? wxString( wxT(
"TF" ) ) :
_(
"Transfer Function Analysis" );
66 case ST_SP:
return aShortName ? wxString( wxT(
"SP" ) ) :
_(
"S-Parameter Analysis" );
67 case ST_FFT:
return aShortName ? wxString( wxT(
"FFT" ) ) :
_(
"Frequency Content Analysis" );
69 case ST_UNKNOWN:
return aShortName ? wxString( wxT(
"??" ) ) :
_(
"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.
This file contains miscellaneous commonly used macros and functions.
SIM_TYPE
< Possible simulation types