KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KICAD_DIFF::ITEM_DESCRIPTOR Struct Reference

Descriptor used by the identity reconciler to compare items across two documents. More...

#include <identity_reconciler.h>

Public Attributes

KIID_PATH id
 
wxString type
 
VECTOR2I position { 0, 0 }
 
BOX2I bbox
 
std::vector< std::pair< wxString, std::string > > keyProps
 

Detailed Description

Descriptor used by the identity reconciler to compare items across two documents.

Per-document-type differs produce a vector of descriptors. The reconciler is type-agnostic: it sees only this struct.

type is the KiCad item class name. Cross-type matches are never produced. keyProps is a stable set of identifying properties (lib id, refdes, footprint name, net code, etc.) the differ decides are strong identity signals for similarity fallback. Order is irrelevant — pairs are compared as a set.

Definition at line 51 of file identity_reconciler.h.

Member Data Documentation

◆ bbox

◆ id

◆ keyProps

std::vector<std::pair<wxString, std::string> > KICAD_DIFF::ITEM_DESCRIPTOR::keyProps

◆ position

◆ type

wxString KICAD_DIFF::ITEM_DESCRIPTOR::type

The documentation for this struct was generated from the following file: