27 #ifndef NETLIST_EXPORTER_PSPICE_SIM_H 28 #define NETLIST_EXPORTER_PSPICE_SIM_H 65 const wxString& aParam = wxEmptyString )
const;
wxString m_simCommand
< Custom simulation command (has priority over the schematic sheet simulation commands)
wxString ComponentToVector(const wxString &aName, SIM_PLOT_TYPE aType, const wxString &aParam=wxEmptyString) const
Return name of Spice dataset for a specific plot.
wxString GetUsedSimCommand()
Return the command directive that is in use (either from the sheet or from m_simCommand.
SIM_PLOT_TYPE VectorToSignal(const std::string &aVector, wxString &aSignal) const
Return name of Spice dataset for a specific plot.
static bool IsSimCommand(const wxString &aCmd)
Determine if a directive is a simulation command.
static SIM_TYPE CommandToSimType(const wxString &aCmd)
Return simulation type basing on a simulation command directive.
void writeDirectives(OUTPUTFORMATTER *aFormatter, unsigned aCtl) const override
Save the Spice directives.
static const std::vector< wxString > & GetCurrents(SPICE_PRIMITIVE aPrimitive)
Return a list of currents that can be probed in a Spice primitive.
wxString GetSheetSimCommand()
Return simulation command directives placed in schematic sheets (if any).
< Helper class to handle Spice way of expressing values (e.g. 10.5 Meg) Helper class to recognize Spi...
SIM_TYPE
< Possible simulation types
void SetSimCommand(const wxString &aCmd)
Override the simulation command directive.
void ClearSimCommand()
Clear the simulation command directive.
bool ParseDCCommand(const wxString &aCmd, SPICE_DC_PARAMS *aSource1, SPICE_DC_PARAMS *aSource2)
Parse a two-source .dc command directive into its components.
NETLIST_EXPORTER_PSPICE_SIM(SCHEMATIC_IFACE *aSchematic)
const wxString & GetSimCommand() const
Return the simulation command directive.
Generate a PSPICE compatible netlist.
SIM_TYPE GetSimType()
Return simulation type basing on the simulation command directives.
Special netlist exporter flavor that allows one to override simulation commands.