KiCad PCB EDA Suite
CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR Struct Reference

#include <cadstar_pcb_archive_parser.h>

Inheritance diagram for CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR:

Public Member Functions

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

Public Attributes

LAYERPAIR_ID ID
 
wxString Name
 
PHYSICAL_LAYER_ID PhysicalLayerStart
 
PHYSICAL_LAYER_ID PhysicalLayerEnd
 
VIACODE_ID ViacodeID
 

Detailed Description

Definition at line 342 of file cadstar_pcb_archive_parser.h.

Member Function Documentation

◆ Parse()

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

Definition at line 904 of file cadstar_pcb_archive_parser.cpp.

905 {
906  wxASSERT( aNode->GetName() == wxT( "LAYERPAIR" ) );
907 
908  ID = GetXmlAttributeIDString( aNode, 0 );
909  Name = GetXmlAttributeIDString( aNode, 1 );
910 
913 
914  wxString location = wxString::Format( wxT( "LAYERPAIR -> %s" ), Name );
915 
916  if( aNode->GetChildren() )
917  {
918  if( aNode->GetChildren()->GetName() == wxT( "VIACODEREF" ) )
919  {
921  }
922  else
923  {
924  THROW_UNKNOWN_NODE_IO_ERROR( aNode->GetChildren()->GetName(), location );
925  }
926 
927  CheckNoNextNodes( aNode->GetChildren() );
928  }
929 }
XNODE * GetChildren() const
Definition: xnode.h:62
static long GetXmlAttributeIDLong(XNODE *aNode, unsigned int aID, bool aIsRequired=true)
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:200
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(), Format(), XNODE::GetChildren(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), and THROW_UNKNOWN_NODE_IO_ERROR.

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

Member Data Documentation

◆ ID

LAYERPAIR_ID CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::ID

◆ Name

wxString CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::Name

Definition at line 345 of file cadstar_pcb_archive_parser.h.

◆ PhysicalLayerEnd

PHYSICAL_LAYER_ID CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::PhysicalLayerEnd

◆ PhysicalLayerStart

PHYSICAL_LAYER_ID CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::PhysicalLayerStart

◆ ViacodeID

VIACODE_ID CADSTAR_PCB_ARCHIVE_PARSER::LAYERPAIR::ViacodeID

Definition at line 348 of file cadstar_pcb_archive_parser.h.


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