27#ifndef NGSPICE_CIRCUIT_MODEL_H
28#define NGSPICE_CIRCUIT_MODEL_H
bool DoWriteNetlist(OUTPUTFORMATTER &aFormatter, unsigned aNetlistOptions, REPORTER &aReporter)
Write the netlist in aFormatter.
Special netlist exporter flavor that allows one to override simulation commands.
virtual ~NGSPICE_CIRCUIT_MODEL()
NGSPICE_CIRCUIT_MODEL(SCHEMATIC_IFACE *aSchematic, wxWindow *aDialogParent=nullptr)
int GetSimOptions() const
SIM_TRACE_TYPE VectorToSignal(const std::string &aVector, wxString &aSignal) const
Return name of Spice dataset for a specific trace.
SIM_TYPE GetSimType()
Return simulation type basing on the simulation command directives.
static SIM_TYPE CommandToSimType(const wxString &aCmd)
Return simulation type basing on a 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 symbols.
bool GetNetlist(OUTPUTFORMATTER *aFormatter, REPORTER &aReporter)
void WriteDirectives(OUTPUTFORMATTER &aFormatter, unsigned aNetlistOptions) const override
wxString GetSimCommandOverride() const
Return the simulation command directive if stored separately (not as a sheet directive).
wxString GetSchTextSimCommand()
Return simulation command directives placed in schematic sheets (if any).
static bool IsSimCommand(const wxString &aCmd)
Determine if a directive is a simulation command.
wxString m_lastSchTextSimCommand
void SetSimCommandOverride(const wxString &aCmd)
Override the simulation command directive.
wxString GetLastSchTextSimCommand() const
Return the sim command present as a sheet directive when the sim command override was last updated.
void SetSimOptions(int aOptions)
wxString GetSimCommand()
Return the command directive that is in use (either from the sheet or from m_simCommand)
wxString m_simCommand
< Custom simulation command (has priority over the schematic sheet simulation commands)
A pure virtual class used to derive REPORTER objects from.
Helper class to recognize Spice formatted values.
SIM_TYPE
< Possible simulation types