29 #include <boost/ptr_container/ptr_vector.hpp> 30 #include <wx/arrstr.h> 49 const wxString& aPinFunction,
const wxString& aPinType ) :
88 const wxString& aReference,
89 const wxString& aValue,
91 const std::vector<KIID>& aKiids )
103 void AddNet(
const wxString& aPinName,
const wxString& aNetName,
const wxString& aPinFunction,
104 const wxString& aPinType )
155 bool IsLibSource(
const wxString& aLibrary,
const wxString& aName )
const 280 #define CTL_OMIT_EXTRA (1<<0) 281 #define CTL_OMIT_NETS (1<<1) 282 #define CTL_OMIT_FILTERS (1<<2) 283 #define CTL_OMIT_FP_UUID (1<<3) 285 #define CTL_FOR_CVPCB (CTL_OMIT_NETS | CTL_OMIT_FILTERS | CTL_OMIT_EXTRA) 300 #endif // PCB_NETLIST_H bool IsLibSource(const wxString &aLibrary, const wxString &aName) const
void SetAltFPID(const LIB_ID &aFPID)
KIID_PATH m_path
A fully specified path to the component (but not the component: [ sheetUUID, sheetUUID,...
std::unique_ptr< FOOTPRINT > m_footprint
The FOOTPRINT loaded for #m_FPID.
void Format(OUTPUTFORMATTER *aOut, int aNestLevel, int aCtl)
wxString m_name
The name of the component in m_library used when it was placed on the schematic..
COMPONENT * GetComponentByPath(const KIID_PATH &aPath)
Return a COMPONENT by aPath.
LIB_ID m_altFpid
The alt LIB_ID of the footprint, when there are 2 different assigned footprints, One from the netlist...
void FormatCvpcbNetlist(OUTPUTFORMATTER *aOut)
wxString m_library
The name of the component library where m_name was found.
void SetFPID(const LIB_ID &aFPID)
bool AnyFootprintsLinked() const
const wxString & GetPinType() const
bool IsFindByTimeStamp() const
void SetLibrary(const wxString &aLibrary)
wxArrayString m_footprintFilters
Footprint filters found in netlist.
unsigned GetCount() const
void SetFindByTimeStamp(bool aFindByTimeStamp)
void SetProperties(std::map< wxString, wxString > &aProps)
A pure virtual class used to derive REPORTER objects from.
A logical library item identifier and consists of various portions much like a URI.
std::vector< KIID > m_kiids
A vector of possible KIIDs corresponding to all units in a symbol.
static COMPONENT_NET m_emptyNet
void SetFootprint(FOOTPRINT *aFootprint)
const wxString & GetName() const
void AddComponent(COMPONENT *aComponent)
Add aComponent to the NETLIST.
int Format(OUTPUTFORMATTER *aOut, int aNestLevel, int aCtl)
const LIB_ID & GetFPID() const
COMPONENT_NETS m_nets
list of nets shared by the component pins
Used to store the component pin name to net name (and pin function) associations stored in a netlist.
void SetReplaceFootprints(bool aReplace)
const wxString & GetNetName() const
Store information read from a netlist along with the flags used to update the NETLIST in the BOARD.
const LIB_ID & GetAltFPID() const
unsigned GetNetCount() const
bool operator<(const COMPONENT_NET &aNet) const
void SetPinCount(int aPinCount)
const wxString & GetReference() const
const COMPONENT_NET & GetNet(unsigned aIndex) const
COMPONENT_NET(const wxString &aPinName, const wxString &aNetName, const wxString &aPinFunction, const wxString &aPinType)
const wxString & GetLibrary() const
std::map< wxString, wxString > m_properties
Component-specific properties found in the netlist.
Store all of the related footprint information found in a netlist.
const wxString & GetPinFunction() const
COMPONENT * GetComponent(unsigned aIndex)
Return the COMPONENT at aIndex.
void SetFootprintFilters(const wxArrayString &aFilters)
void Clear()
Remove all components from the netlist.
LIB_ID m_fpid
The LIB_ID of the footprint assigned to the component.
COMPONENT(const LIB_ID &aFPID, const wxString &aReference, const wxString &aValue, const KIID_PATH &aPath, const std::vector< KIID > &aKiids)
void Format(const char *aDocName, OUTPUTFORMATTER *aOut, int aNestLevel, int aCtl=0)
bool GetReplaceFootprints() const
wxString m_value
The component value found in netlist.
void SetName(const wxString &aName)
void AddNet(const wxString &aPinName, const wxString &aNetName, const wxString &aPinFunction, const wxString &aPinType)
const wxString & GetPinName() const
const std::map< wxString, wxString > & GetProperties() const
const wxString & GetValue() const
const wxArrayString & GetFootprintFilters() const
COMPONENT * GetComponentByReference(const wxString &aReference)
Return a COMPONENT by aReference.
wxString m_reference
The component reference designator found in netlist.
std::vector< COMPONENT_NET > COMPONENT_NETS
boost::ptr_vector< COMPONENT > COMPONENTS
int m_pinCount
Number of pins found in netlist.
const KIID_PATH & GetPath() const
FOOTPRINT * GetFootprint(bool aRelease=false)
const std::vector< KIID > & GetKIIDs() const