KiCad PCB EDA Suite
CADSTAR_PCB_ARCHIVE_PARSER::ASSIGNMENTS Struct Reference

#include <cadstar_pcb_archive_parser.h>

Inheritance diagram for CADSTAR_PCB_ARCHIVE_PARSER::ASSIGNMENTS:

Public Member Functions

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

Public Attributes

LAYERDEFS Layerdefs
 
CODEDEFS_PCB Codedefs
 
TECHNOLOGY_SECTION Technology
 
GRIDS Grids
 
bool NetclassEditAttributeSettings = false
 
bool SpacingclassEditAttributeSettings = false
 

Detailed Description

Definition at line 422 of file cadstar_pcb_archive_parser.h.

Member Function Documentation

◆ Parse()

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

Definition at line 130 of file cadstar_pcb_archive_parser.cpp.

131 {
132  wxASSERT( aNode->GetName() == wxT( "ASSIGNMENTS" ) );
133 
134  XNODE* cNode = aNode->GetChildren();
135 
136  if( !cNode )
137  THROW_MISSING_NODE_IO_ERROR( wxT( "TECHNOLOGY" ), wxT( "ASSIGNMENTS" ) );
138 
139  for( ; cNode; cNode = cNode->GetNext() )
140  {
141  if( cNode->GetName() == wxT( "LAYERDEFS" ) )
142  Layerdefs.Parse( cNode, aContext );
143  else if( cNode->GetName() == wxT( "CODEDEFS" ) )
144  Codedefs.Parse( cNode, aContext );
145  else if( cNode->GetName() == wxT( "TECHNOLOGY" ) )
146  Technology.Parse( cNode, aContext );
147  else if( cNode->GetName() == wxT( "GRIDS" ) )
148  Grids.Parse( cNode, aContext );
149  else if( cNode->GetName() == wxT( "NETCLASSEDITATTRIBSETTINGS" ) )
151  else if( cNode->GetName() == wxT( "SPCCLASSEDITATTRIBSETTINGS" ) )
153  else
154  THROW_UNKNOWN_NODE_IO_ERROR( cNode->GetName(), aNode->GetName() );
155  }
156 }
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override
XNODE * GetChildren() const
Definition: xnode.h:62
#define THROW_MISSING_NODE_IO_ERROR(nodename, location)
Hold an XML or S-expression element.
Definition: xnode.h:43
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override
#define THROW_UNKNOWN_NODE_IO_ERROR(nodename, location)
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override

References Codedefs, XNODE::GetChildren(), Grids, Layerdefs, NetclassEditAttributeSettings, CADSTAR_PCB_ARCHIVE_PARSER::LAYERDEFS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::CODEDEFS_PCB::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TECHNOLOGY_SECTION::Parse(), CADSTAR_ARCHIVE_PARSER::GRIDS::Parse(), SpacingclassEditAttributeSettings, Technology, THROW_MISSING_NODE_IO_ERROR, and THROW_UNKNOWN_NODE_IO_ERROR.

Referenced by CADSTAR_PCB_ARCHIVE_PARSER::Parse().

Member Data Documentation

◆ Codedefs

◆ Grids

GRIDS CADSTAR_PCB_ARCHIVE_PARSER::ASSIGNMENTS::Grids

Definition at line 427 of file cadstar_pcb_archive_parser.h.

Referenced by Parse().

◆ Layerdefs

◆ NetclassEditAttributeSettings

bool CADSTAR_PCB_ARCHIVE_PARSER::ASSIGNMENTS::NetclassEditAttributeSettings = false

Definition at line 428 of file cadstar_pcb_archive_parser.h.

Referenced by Parse().

◆ SpacingclassEditAttributeSettings

bool CADSTAR_PCB_ARCHIVE_PARSER::ASSIGNMENTS::SpacingclassEditAttributeSettings = false

Definition at line 429 of file cadstar_pcb_archive_parser.h.

Referenced by Parse().

◆ Technology


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