26#ifndef NETLIST_EXPORT_XML_H
27#define NETLIST_EXPORT_XML_H
39#define GENERIC_INTERMEDIATE_NETLIST_EXT wxT( "xml" )
78 bool WriteNetlist(
const wxString& aOutFileName,
unsigned aNetlistOptions,
81#define GNL_ALL ( GNL_LIBRARIES | GNL_SYMBOLS | GNL_PARTS | GNL_HEADER | GNL_NETS )
92 XNODE*
node(
const wxString& aName,
const wxString& aTextualContent = wxEmptyString );
139 std::vector<wxString>
Calculate the connectivity of a schematic and generates netlists.
An abstract class used for the netlist exporters that Eeschema supports.
Generate a generic XML based netlist file.
XNODE * makeDesignHeader()
Fill out a project "design" header into an XML node.
NETLIST_EXPORTER_XML(SCHEMATIC *aSchematic)
XNODE * makeLibraries()
Fill out an XML node with a list of used libraries and returns it.
bool WriteNetlist(const wxString &aOutFileName, unsigned aNetlistOptions, REPORTER &aReporter) override
Write generic netlist to aOutFileName.
XNODE * node(const wxString &aName, const wxString &aTextualContent=wxEmptyString)
A convenience function that creates a new XNODE with an optional textual child.
XNODE * makeListOfNets(unsigned aCtl)
Fill out an XML node with a list of nets and returns it.
void addSymbolFields(XNODE *aNode, SCH_SYMBOL *aSymbol, const SCH_SHEET_PATH &aSheet, const SCH_SHEET_LIST &aSheetList)
Holder for multi-unit symbol fields.
std::vector< wxString > getComponentClassNamesForAllSymbolUnits(SCH_SYMBOL *aSymbol, const SCH_SHEET_PATH &aSymbolSheet, const SCH_SHEET_LIST &aSheetList)
Finds all component class names attached to any sub-unit of a given symbol.
XNODE * makeSymbols(unsigned aCtl)
XNODE * makeRoot(unsigned aCtl=GNL_ALL)
Build the entire document tree for the generic export.
std::set< wxString > m_libraries
XNODE * makeLibParts()
Fill out an XML node with the unique library parts and returns it.
A pure virtual class used to derive REPORTER objects from.
Holds all the data relating to one schematic.
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
Hold an XML or S-expression element.
GNL_T
A set of bits which control the totality of the tree built by makeRoot()