21#ifndef CVPCB_ASSOCIATION_H
22#define CVPCB_ASSOCIATION_H
49 const 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, const LIB_ID &aNewFootprint, const LIB_ID &aOldFootprint=LIB_ID())
Create an association event that contains all the information needed to modify the footprint associat...
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.
CVPCB_ASSOCIATION(unsigned int aComponentIndex, const wxString &aNewFootprint, const wxString &aOldFootprint="")
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.