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

One change record on a single item. More...

#include <kicad_diff_types.h>

Public Member Functions

bool operator== (const ITEM_CHANGE &aOther) const
 
nlohmann::json ToJson () const
 

Static Public Member Functions

static ITEM_CHANGE FromJson (const nlohmann::json &aJson)
 

Public Attributes

KIID_PATH id
 
wxString typeName
 
CHANGE_KIND kind
 
std::vector< PROPERTY_DELTAproperties
 
BOX2I bbox
 
std::optional< wxString > refdes
 
std::vector< ITEM_CHANGEchildren
 

Detailed Description

One change record on a single item.

The id is a KIID_PATH so that hierarchical context (sheet path for schematics, footprint path for child pads) is preserved across the diff/merge pipeline. The refdes field is presentation only and is not used to key items in the engine.

Definition at line 283 of file kicad_diff_types.h.

Member Function Documentation

◆ FromJson()

ITEM_CHANGE KICAD_DIFF::ITEM_CHANGE::FromJson ( const nlohmann::json & aJson)
static

◆ operator==()

bool KICAD_DIFF::ITEM_CHANGE::operator== ( const ITEM_CHANGE & aOther) const

Definition at line 651 of file kicad_diff_types.cpp.

References bbox, children, id, kind, operator==(), properties, refdes, and typeName.

Referenced by operator==().

◆ ToJson()

nlohmann::json KICAD_DIFF::ITEM_CHANGE::ToJson ( ) const

Member Data Documentation

◆ bbox

◆ children

◆ id

◆ kind

◆ properties

◆ refdes

◆ typeName


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