KiCad PCB EDA Suite
CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN Struct Reference

#include <cadstar_pcb_archive_parser.h>

Inheritance diagram for CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN:

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 317 of file cadstar_pcb_archive_parser.h.

Member Function Documentation

◆ Parse()

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

Definition at line 834 of file cadstar_pcb_archive_parser.cpp.

835 {
836  wxASSERT( aNode->GetName() == wxT( "VIAREASSIGN" ) );
837 
838  LayerID = GetXmlAttributeIDString( aNode, 0 );
839 
841  Shape.Parse( aNode->GetChildren(), aContext );
842  else
843  THROW_UNKNOWN_NODE_IO_ERROR( aNode->GetChildren()->GetName(), aNode->GetName() );
844 
845  CheckNoNextNodes( aNode->GetChildren() );
846 }
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::VIACODE::Parse().

Member Data Documentation

◆ LayerID

LAYER_ID CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN::LayerID

◆ Shape

CADSTAR_PAD_SHAPE CADSTAR_PCB_ARCHIVE_PARSER::VIAREASSIGN::Shape

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