KiCad PCB EDA Suite
CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN Struct Reference

< "PIN" nodename (represents a PAD in a PCB component) More...

#include <cadstar_pcb_archive_parser.h>

Inheritance diagram for CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN:

Public Member Functions

void Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override
 

Public Attributes

NETELEMENT_ID ID
 First character is "P". More...
 
COMPONENT_ID ComponentID
 
PAD_ID PadID
 

Detailed Description

< "PIN" nodename (represents a PAD in a PCB component)

Definition at line 942 of file cadstar_pcb_archive_parser.h.

Member Function Documentation

◆ Parse()

void CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::Parse ( XNODE aNode,
PARSER_CONTEXT aContext 
)
override

Definition at line 1952 of file cadstar_pcb_archive_parser.cpp.

1953 {
1954  wxASSERT( aNode->GetName() == wxT( "PIN" ) );
1955 
1956  ID = GetXmlAttributeIDString( aNode, 0 );
1957  ComponentID = GetXmlAttributeIDString( aNode, 1 );
1958  PadID = GetXmlAttributeIDLong( aNode, 2 );
1959  CheckNoChildNodes( aNode );
1960 }
NETELEMENT_ID ID
First character is "P".
static void CheckNoChildNodes(XNODE *aNode)
static long GetXmlAttributeIDLong(XNODE *aNode, unsigned int aID, bool aIsRequired=true)
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)

References CADSTAR_ARCHIVE_PARSER::CheckNoChildNodes(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), and CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString().

Member Data Documentation

◆ ComponentID

COMPONENT_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::ComponentID

Definition at line 945 of file cadstar_pcb_archive_parser.h.

◆ ID

NETELEMENT_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::ID

First character is "P".

Definition at line 944 of file cadstar_pcb_archive_parser.h.

◆ PadID

PAD_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::PIN::PadID

Definition at line 946 of file cadstar_pcb_archive_parser.h.


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