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 958 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 1981 of file cadstar_pcb_archive_parser.cpp.

1982{
1983 wxASSERT( aNode->GetName() == wxT( "VIA" ) );
1984
1985 ID = GetXmlAttributeIDString( aNode, 0 );
1986 ViaCodeID = GetXmlAttributeIDString( aNode, 1 );
1988
1989 XNODE* cNode = aNode->GetChildren();
1990
1991 for( ; cNode; cNode = cNode->GetNext() )
1992 {
1993 wxString cNodeName = cNode->GetName();
1994
1995 if( cNodeName == wxT( "PT" ) )
1996 Location.Parse( cNode, aContext );
1997 else if( cNodeName == wxT( "FIX" ) )
1998 Fixed = true;
1999 else if( cNodeName == wxT( "GROUPREF" ) )
2000 GroupID = GetXmlAttributeIDString( cNode, 0 );
2001 else if( cNodeName == wxT( "REUSEBLOCKREF" ) )
2002 ReuseBlockRef.Parse( cNode, aContext );
2003 else if( cNodeName == wxT( "TESTLAND" ) )
2005 else if( cNode->GetName() == wxT( "TRUNKREF" ) )
2006 TrunkID = GetXmlAttributeIDString( cNode, 0 );
2007 else
2008 THROW_UNKNOWN_NODE_IO_ERROR( cNodeName, aNode->GetName() );
2009 }
2010}
#define THROW_UNKNOWN_NODE_IO_ERROR(nodename, location)
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)
static TESTLAND_SIDE ParseTestlandSide(XNODE *aNode)
Hold an XML or S-expression element.
Definition: xnode.h:44
XNODE * GetChildren() const
Definition: xnode.h:62
XNODE * GetNext() const
Definition: xnode.h:67
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override
GROUP_ID GroupID
If not empty, this VIA is part of a group.
NETELEMENT_ID ID
First character is "V".

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 968 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 965 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 960 of file cadstar_pcb_archive_parser.h.

◆ LayerPairID

LAYERPAIR_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::LayerPairID

Definition at line 962 of file cadstar_pcb_archive_parser.h.

◆ Location

POINT CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::Location

Definition at line 963 of file cadstar_pcb_archive_parser.h.

◆ ReuseBlockRef

REUSEBLOCKREF CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::ReuseBlockRef

Definition at line 966 of file cadstar_pcb_archive_parser.h.

◆ TestlandSide

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

Definition at line 967 of file cadstar_pcb_archive_parser.h.

◆ TrunkID

TRUNK_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::TrunkID

TRUNKREF Statements.

Definition at line 964 of file cadstar_pcb_archive_parser.h.

◆ ViaCodeID

VIACODE_ID CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA::ViaCodeID

Definition at line 961 of file cadstar_pcb_archive_parser.h.


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