34 unsigned aNetlistOptions )
36 aFormatter.
Print( 0,
"*\n" );
37 aFormatter.
Print( 0,
"\n" );
40 for(
auto const& [key, port] :
m_ports )
46 case L_INPUT: portDir =
"input";
break;
47 case L_OUTPUT: portDir =
"output";
break;
48 case L_BIDI: portDir =
"inout";
break;
51 default: wxFAIL_MSG(
"Invalid port direction" );
break;
57 aFormatter.
Print( 0,
"\n\n" );
62 unsigned aNetlistOptions )
64 aFormatter.
Print( 0,
"\n.ends\n" );
78 int& aNcCounter )
const
80 wxString netName = aNetName;
83 netName =
m_ports.at( netName).m_name;
99 wxString labelText = label->
GetShownText( &sheet,
false );
SCHEMATIC_IFACE * m_schematic
The schematic we're generating a netlist for.
void WriteTail(OUTPUTFORMATTER &aFormatter, unsigned aNetlistOptions) override
Write the tail (.end).
std::map< wxString, PORT_INFO > m_ports
wxString GenerateItemPinNetName(const wxString &aNetName, int &aNcCounter) const override
bool ReadSchematicAndLibraries(unsigned aNetlistOptions, REPORTER &aReporter) override
Process the schematic and Spice libraries to create net mapping and a list of SPICE_ITEMs.
void readPorts(unsigned aNetlistOptions)
void WriteHead(OUTPUTFORMATTER &aFormatter, unsigned aNetlistOptions) override
Write the netlist head (title and so on).
SCH_SHEET_LIST BuildSheetList(unsigned aNetlistOptions=0) const
Return the paths of exported sheets (either all or the current one).
virtual wxString GenerateItemPinNetName(const wxString &aNetName, int &aNcCounter) const
virtual bool ReadSchematicAndLibraries(unsigned aNetlistOptions, REPORTER &aReporter)
Process the schematic and Spice libraries to create net mapping and a list of SPICE_ITEMs.
virtual const wxString GetProjectName() const
Return the short name of the project.
A pure virtual class used to derive REPORTER objects from.
virtual PROJECT & Prj() const =0
Each graphical item can have a SCH_CONNECTION describing its logical connection (to a bus or net).
Base class for any item which can be embedded within the SCHEMATIC container class,...
SCH_CONNECTION * Connection(const SCH_SHEET_PATH *aSheet=nullptr) const
Retrieve the connection associated with this object in the given sheet.
wxString GetShownText(const SCH_SHEET_PATH *aPath, bool aAllowExtraText, int aDepth=0) const override
LABEL_FLAG_SHAPE GetShape() const
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.