KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EAGLE_BIN_PARSER::EGB_NODE Struct Reference

Lightweight mutable tree node for the intermediate Eagle binary tree. More...

Public Member Functions

EGB_NODEAddChild (int aId, const wxString &aName)
 
bool HasProp (const wxString &aKey) const
 
wxString Prop (const wxString &aKey) const
 
long PropLong (const wxString &aKey) const
 
wxString PropDoubled (const wxString &aKey) const
 Format a property doubled in 64-bit so the half-to-full widening cannot overflow a 32-bit long.
 
EGB_NODEFindChildById (int aId) const
 
EGB_NODEFindChildByName (const wxString &aName) const
 

Public Attributes

int id = 0
 
wxString name
 
std::map< wxString, wxString > props
 
std::vector< std::unique_ptr< EGB_NODE > > children
 
EGB_NODEparent = nullptr
 

Detailed Description

Lightweight mutable tree node for the intermediate Eagle binary tree.

Definition at line 85 of file eagle_bin_parser.h.

Member Function Documentation

◆ AddChild()

EAGLE_BIN_PARSER::EGB_NODE * EAGLE_BIN_PARSER::EGB_NODE::AddChild ( int aId,
const wxString & aName )

◆ FindChildById()

EAGLE_BIN_PARSER::EGB_NODE * EAGLE_BIN_PARSER::EGB_NODE::FindChildById ( int aId) const

◆ FindChildByName()

EAGLE_BIN_PARSER::EGB_NODE * EAGLE_BIN_PARSER::EGB_NODE::FindChildByName ( const wxString & aName) const

Definition at line 797 of file eagle_bin_parser.cpp.

References children.

Referenced by EAGLE_BIN_PARSER::postProcess().

◆ HasProp()

◆ Prop()

◆ PropDoubled()

wxString EAGLE_BIN_PARSER::EGB_NODE::PropDoubled ( const wxString & aKey) const

Format a property doubled in 64-bit so the half-to-full widening cannot overflow a 32-bit long.

Definition at line 776 of file eagle_bin_parser.cpp.

References Prop().

Referenced by EAGLE_BIN_PARSER::postprocArcs(), EAGLE_BIN_PARSER::postprocCircles(), EAGLE_BIN_PARSER::postprocDimensions(), EAGLE_BIN_PARSER::postprocSmd(), and EAGLE_BIN_PARSER::postprocWires().

◆ PropLong()

Member Data Documentation

◆ children

◆ id

◆ name

wxString EAGLE_BIN_PARSER::EGB_NODE::name

Definition at line 88 of file eagle_bin_parser.h.

Referenced by EAGLE_BIN_PARSER::toXml().

◆ parent

EGB_NODE* EAGLE_BIN_PARSER::EGB_NODE::parent = nullptr

Definition at line 91 of file eagle_bin_parser.h.

Referenced by EAGLE_BIN_PARSER::postprocLibs().

◆ props


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