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

< "VIA" nodename More...

#include <cadstar_pcb_archive_parser.h>

Inheritance diagram for CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA:
CADSTAR_ARCHIVE_PARSER::PARSER

Public Member Functions

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

Public Attributes

NETELEMENT_ID ID
 First character is "V". More...
 
VIACODE_ID ViaCodeID
 
LAYERPAIR_ID LayerPairID
 
POINT Location
 
TRUNK_ID TrunkID
 TRUNKREF Statements. More...
 
GROUP_ID GroupID = wxEmptyString
 If not empty, this VIA is part of a group. More...
 
REUSEBLOCKREF ReuseBlockRef
 
TESTLAND_SIDE TestlandSide = TESTLAND_SIDE::NONE
 
bool Fixed = false
 

Detailed Description

< "VIA" nodename

Definition at line 956 of file cadstar_pcb_archive_parser.h.

Member Function Documentation

◆ Parse()

void CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::Parse ( XNODE aNode,
PARSER_CONTEXT aContext 
)
overridevirtual

Implements CADSTAR_ARCHIVE_PARSER::PARSER.

Definition at line 1952 of file cadstar_pcb_archive_parser.cpp.

1953 {
1954  wxASSERT( aNode->GetName() == wxT( "VIA" ) );
1955 
1956  ID = GetXmlAttributeIDString( aNode, 0 );
1957  ViaCodeID = GetXmlAttributeIDString( aNode, 1 );
1958  LayerPairID = GetXmlAttributeIDString( aNode, 2 );
1959 
1960  XNODE* cNode = aNode->GetChildren();
1961 
1962  for( ; cNode; cNode = cNode->GetNext() )
1963  {
1964  wxString cNodeName = cNode->GetName();
1965 
1966  if( cNodeName == wxT( "PT" ) )
1967  Location.Parse( cNode, aContext );
1968  else if( cNodeName == wxT( "FIX" ) )
1969  Fixed = true;
1970  else if( cNodeName == wxT( "GROUPREF" ) )
1971  GroupID = GetXmlAttributeIDString( cNode, 0 );
1972  else if( cNodeName == wxT( "REUSEBLOCKREF" ) )
1973  ReuseBlockRef.Parse( cNode, aContext );
1974  else if( cNodeName == wxT( "TESTLAND" ) )
1975  TestlandSide = ParseTestlandSide( cNode );
1976  else if( cNode->GetName() == wxT( "TRUNKREF" ) )
1977  TrunkID = GetXmlAttributeIDString( cNode, 0 );
1978  else
1979  THROW_UNKNOWN_NODE_IO_ERROR( cNodeName, aNode->GetName() );
1980  }
1981 }
XNODE * GetChildren() const
Definition: xnode.h:62
GROUP_ID GroupID
If not empty, this VIA is part of a group.
Hold an XML or S-expression element.
Definition: xnode.h:43
XNODE * GetNext() const
Definition: xnode.h:67
NETELEMENT_ID ID
First character is "V".
static TESTLAND_SIDE ParseTestlandSide(XNODE *aNode)
#define THROW_UNKNOWN_NODE_IO_ERROR(nodename, location)
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)

References XNODE::GetChildren(), XNODE::GetNext(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_PCB_ARCHIVE_PARSER::ParseTestlandSide(), and THROW_UNKNOWN_NODE_IO_ERROR.

Member Data Documentation

◆ Fixed

bool CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::Fixed = false

Definition at line 966 of file cadstar_pcb_archive_parser.h.

◆ GroupID

GROUP_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::GroupID = wxEmptyString

If not empty, this VIA is part of a group.

Definition at line 963 of file cadstar_pcb_archive_parser.h.

◆ ID

NETELEMENT_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::ID

First character is "V".

Definition at line 958 of file cadstar_pcb_archive_parser.h.

◆ LayerPairID

LAYERPAIR_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::LayerPairID

Definition at line 960 of file cadstar_pcb_archive_parser.h.

◆ Location

POINT CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::Location

Definition at line 961 of file cadstar_pcb_archive_parser.h.

◆ ReuseBlockRef

REUSEBLOCKREF CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::ReuseBlockRef

Definition at line 964 of file cadstar_pcb_archive_parser.h.

◆ TestlandSide

TESTLAND_SIDE CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::TestlandSide = TESTLAND_SIDE::NONE

Definition at line 965 of file cadstar_pcb_archive_parser.h.

◆ TrunkID

TRUNK_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::TrunkID

TRUNKREF Statements.

Definition at line 962 of file cadstar_pcb_archive_parser.h.

◆ ViaCodeID

VIACODE_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::ViaCodeID

Definition at line 959 of file cadstar_pcb_archive_parser.h.


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