21#ifndef CVPCB_ASSOCIATION_H
22#define CVPCB_ASSOCIATION_H
44 unsigned int aComponentIndex,
LIB_ID aNewFootprint,
LIB_ID aOldFootprint =
LIB_ID() ) :
51 unsigned int aComponentIndex, wxString aNewFootprint, wxString aOldFootprint =
"" ) :
A class to define a footprint association to be made in cvpcb.
unsigned int GetComponentIndex() const
Get the index of the component to modify the association of.
void SetOldFootprint(const LIB_ID &aOldFootprint)
Set the footprint that was associated with the component before this association event.
unsigned int m_componentIndex
CVPCB_ASSOCIATION(unsigned int aComponentIndex, LIB_ID aNewFootprint, LIB_ID aOldFootprint=LIB_ID())
Create an association event that contains all the information needed to modify the footprint associat...
CVPCB_ASSOCIATION(unsigned int aComponentIndex, wxString aNewFootprint, wxString aOldFootprint="")
void SetNewFootprint(const LIB_ID &aNewFootprint)
Set the footprint that should be associated with the component.
LIB_ID GetOldFootprint() const
Get the old footprint of the component.
CVPCB_ASSOCIATION Reverse() const
Reverse the association.
LIB_ID GetNewFootprint() const
Get the new footprint to associate to the component.
A logical library item identifier and consists of various portions much like a URI.
int Parse(const UTF8 &aId, bool aFix=false)
Parse LIB_ID with the information from aId.