21#ifndef LIB_ELEMENT_DIFF_H
22#define LIB_ELEMENT_DIFF_H
50 const std::map<wxString, const EDA_ITEM*>& aBefore,
51 const std::map<wxString, const EDA_ITEM*>& aAfter );
58void DiffUnkeyedElements( std::vector<LIB_ELEMENT>& aOut,
const std::vector<const EDA_ITEM*>& aBefore,
59 const std::vector<const EDA_ITEM*>& aAfter,
60 const std::function<wxString(
const EDA_ITEM* )>& aTypeName,
61 const std::function<
bool(
const EDA_ITEM*,
const EDA_ITEM* )>& aSameGeometry = {} );
A base class for most all the KiCad significant classes used in schematics and boards.
CHANGE_KIND
Coarse classification of a single item-level change between two documents.
void DiffKeyedElements(std::vector< LIB_ELEMENT > &aOut, const wxString &aTypeName, const std::map< wxString, const EDA_ITEM * > &aBefore, const std::map< wxString, const EDA_ITEM * > &aAfter)
Elements that are matched by a key, such as pins by number or fields by name.
void AppendElementChanges(ITEM_CHANGE &aChange, const std::vector< LIB_ELEMENT > &aElements)
Add each element to aChange as a child change, which is how a library item reports its elements.
void DiffUnkeyedElements(std::vector< LIB_ELEMENT > &aOut, const std::vector< const EDA_ITEM * > &aBefore, const std::vector< const EDA_ITEM * > &aAfter, const std::function< wxString(const EDA_ITEM *)> &aTypeName, const std::function< bool(const EDA_ITEM *, const EDA_ITEM *)> &aSameGeometry)
Elements with no key.
One changed element of a library item, such as a pin, pad, field or graphic.
std::vector< PROPERTY_DELTA > deltas