34 return aOut->
Print( aNestLevel,
"(pin_net %s %s)",
48 if( aFootprint ==
nullptr )
66 if( net.GetPinName() == aPinName )
90 path +=
'/' + pathStep.AsString();
100 aOut->
Print( nl+1,
"(fp_filters" );
105 aOut->
Print( 0,
")\n" );
110 int llen = aOut->
Print( nl+1,
"(nets " );
112 for(
unsigned i = 0; i <
m_nets.size(); ++i )
116 aOut->
Print( 0,
"\n" );
117 llen = aOut->
Print( nl+1,
" " );
120 llen +=
m_nets[i].Format( aOut, 0, aCtl );
123 aOut->
Print( 0,
")\n" );
126 aOut->
Print( nl,
")\n" );
134 aOut->
Print( nl,
"(%s\n", aDocName );
141 aOut->
Print( nl,
")\n" );
170 if( aUuidPath.empty() )
173 KIID comp_uuid = aUuidPath.back();
181 const std::vector<KIID>& kiids = component.GetKIIDs();
183 if( base != component.GetPath() )
186 if( std::find( kiids.begin(), kiids.end(), comp_uuid ) != kiids.end() )
Used to store the component pin name to net name (and pin function) associations stored in a netlist.
int Format(OUTPUTFORMATTER *aOut, int aNestLevel, int aCtl)
Store all of the related footprint information found in a netlist.
const COMPONENT_NET & GetNet(unsigned aIndex) const
wxArrayString m_footprintFilters
const wxString & GetReference() const
void Format(OUTPUTFORMATTER *aOut, int aNestLevel, int aCtl)
KIID_PATH m_path
A fully specified path to the component (but not the component: [ sheetUUID, sheetUUID,...
std::vector< KIID > m_kiids
A vector of possible KIIDs corresponding to all units in a symbol.
wxString m_name
The name of the component in m_library used when it was placed on the schematic.
void SetFootprint(FOOTPRINT *aFootprint)
wxString m_library
The name of the component library where m_name was found.
LIB_ID m_fpid
The LIB_ID of the footprint assigned to the component.
std::vector< COMPONENT_NET > m_nets
list of nets shared by the component pins
static COMPONENT_NET m_emptyNet
std::unique_ptr< FOOTPRINT > m_footprint
The FOOTPRINT loaded for #m_FPID.
std::map< wxString, wxString > m_properties
Component-specific properties found in the netlist.
const LIB_ID & GetFPID() const
void Format(const char *aDocName, OUTPUTFORMATTER *aOut, int aNestLevel, int aCtl=0)
void AddComponent(COMPONENT *aComponent)
Add aComponent to the NETLIST.
COMPONENT * GetComponentByPath(const KIID_PATH &aPath)
Return a COMPONENT by aPath.
COMPONENT * GetComponentByReference(const wxString &aReference)
Return a COMPONENT by aReference.
bool AnyFootprintsLinked() const
static bool empty(const wxTextEntryBase *aCtrl)
bool operator<(const COMPONENT &item1, const COMPONENT &item2)
Compare two COMPONENT objects by reference designator.
static bool ByFPID(const COMPONENT &ref, const COMPONENT &cmp)
A helper function used to sort the component list used by loadNewModules.
#define CTL_OMIT_FP_UUID
Don't prefix the footprint UUID to the sheet path.
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.