KiCad PCB EDA Suite
CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN Struct Reference

#include <cadstar_pcb_archive_parser.h>

Inheritance diagram for CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN:

Public Member Functions

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

Public Attributes

LAYER_ID LayerID
 
CADSTAR_PAD_SHAPE Shape
 

Detailed Description

Definition at line 287 of file cadstar_pcb_archive_parser.h.

Member Function Documentation

◆ Parse()

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

Definition at line 746 of file cadstar_pcb_archive_parser.cpp.

747 {
748  wxASSERT( aNode->GetName() == wxT( "PADREASSIGN" ) );
749 
750  LayerID = GetXmlAttributeIDString( aNode, 0 );
751 
753  Shape.Parse( aNode->GetChildren(), aContext );
754  else
755  THROW_UNKNOWN_NODE_IO_ERROR( aNode->GetChildren()->GetName(), aNode->GetName() );
756 
757  CheckNoNextNodes( aNode->GetChildren() );
758 }
XNODE * GetChildren() const
Definition: xnode.h:62
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override
static void CheckNoNextNodes(XNODE *aNode)
#define THROW_UNKNOWN_NODE_IO_ERROR(nodename, location)
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)

References CADSTAR_ARCHIVE_PARSER::CheckNoNextNodes(), XNODE::GetChildren(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_PCB_ARCHIVE_PARSER::CADSTAR_PAD_SHAPE::IsPadShape(), and THROW_UNKNOWN_NODE_IO_ERROR.

Referenced by CADSTAR_PCB_ARCHIVE_PARSER::PADCODE::Parse().

Member Data Documentation

◆ LayerID

LAYER_ID CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN::LayerID

◆ Shape

CADSTAR_PAD_SHAPE CADSTAR_PCB_ARCHIVE_PARSER::PADREASSIGN::Shape

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