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:
CADSTAR_ARCHIVE_PARSER::PARSER

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 
)
overridevirtual

Implements CADSTAR_ARCHIVE_PARSER::PARSER.

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}
#define THROW_MISSING_NODE_IO_ERROR(nodename, location)
#define THROW_UNKNOWN_NODE_IO_ERROR(nodename, location)
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
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override

References Codedefs, XNODE::GetChildren(), XNODE::GetNext(), Grids, Layerdefs, NetclassEditAttributeSettings, CADSTAR_ARCHIVE_PARSER::GRIDS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::LAYERDEFS::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::CODEDEFS_PCB::Parse(), CADSTAR_PCB_ARCHIVE_PARSER::TECHNOLOGY_SECTION::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: