27 #ifndef NETLIST_EXPORTER_PSPICE_SIM_H 28 #define NETLIST_EXPORTER_PSPICE_SIM_H 64 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
Returns name of Spice dataset for a specific plot.
wxString GetUsedSimCommand()
Returns the command directive that is in use (either from the sheet or from m_simCommand.
Holds all the data relating to one schematic A schematic may consist of one or more sheets (and one r...
SIM_PLOT_TYPE VectorToSignal(const std::string &aVector, wxString &aSignal) const
Returns name of Spice dataset for a specific plot.
static bool IsSimCommand(const wxString &aCmd)
Determines if a directive is a simulation command.
static SIM_TYPE CommandToSimType(const wxString &aCmd)
Returns simulation type basing on a simulation command directive.
void writeDirectives(OUTPUTFORMATTER *aFormatter, unsigned aCtl) const override
Saves the Spice directives.
static const std::vector< wxString > & GetCurrents(SPICE_PRIMITIVE aPrimitive)
Returns a list of currents that can be probed in a Spice primitive.
wxString GetSheetSimCommand()
Returns simulation command directives placed in schematic sheets (if any).
Helper class to handle Spice way of expressing values (e.g. 10.5 Meg)
SIM_TYPE
Possible simulation types
void SetSimCommand(const wxString &aCmd)
Overrides the simulation command directive.
void ClearSimCommand()
Clears the simulation command directive.
bool ParseDCCommand(const wxString &aCmd, SPICE_DC_PARAMS *aSource1, SPICE_DC_PARAMS *aSource2)
Parses a two-source .dc command directive into its components.
const wxString & GetSimCommand() const
Returns the simulation command directive.
SPICE_PRIMITIVE
Basic Spice component primitives
NETLIST_EXPORTER_PSPICE generates a PSPICE compatible netlist.
SIM_PLOT_TYPE
Possible plot types
NETLIST_EXPORTER_PSPICE_SIM(SCHEMATIC *aSchematic)
SIM_TYPE GetSimType()
Returns simulation type basing on the simulation command directives.
Special netlist exporter flavor that allows one to override simulation commands.