KiCad PCB EDA Suite
CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM Struct Reference

#include <cadstar_sch_archive_parser.h>

Inheritance diagram for CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM:
CADSTAR_ARCHIVE_PARSER::PARSER

Public Member Functions

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

Public Attributes

CODEDEFS_SCM Codedefs
 
GRIDS Grids
 
SETTINGS Settings
 
bool NetclassEditAttributeSettings = false
 
bool SpacingclassEditAttributeSettings = false
 

Detailed Description

Definition at line 118 of file cadstar_sch_archive_parser.h.

Member Function Documentation

◆ Parse()

void CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Parse ( XNODE aNode,
PARSER_CONTEXT aContext 
)
overridevirtual

Implements CADSTAR_ARCHIVE_PARSER::PARSER.

Definition at line 287 of file cadstar_sch_archive_parser.cpp.

288 {
289  wxCHECK( aNode->GetName() == wxT( "ASSIGNMENTS" ), );
290 
291  XNODE* cNode = aNode->GetChildren();
292  bool settingsParsed = false;
293 
294  for( ; cNode; cNode = cNode->GetNext() )
295  {
296  if( cNode->GetName() == wxT( "CODEDEFS" ) )
297  {
298  Codedefs.Parse( cNode, aContext );
299  }
300  else if( cNode->GetName() == wxT( "SETTINGS" ) )
301  {
302  settingsParsed = true;
303  Settings.Parse( cNode, aContext );
304  }
305  else if( cNode->GetName() == wxT( "GRIDS" ) )
306  {
307  Grids.Parse( cNode, aContext );
308  }
309  else if( cNode->GetName() == wxT( "NETCLASSEDITATTRIBSETTINGS" ) )
310  {
312  }
313  else if( cNode->GetName() == wxT( "SPCCLASSEDITATTRIBSETTINGS" ) )
314  {
316  }
317  else
318  {
319  THROW_UNKNOWN_NODE_IO_ERROR( cNode->GetName(), aNode->GetName() );
320  }
321  }
322 
323  if( !settingsParsed )
324  THROW_MISSING_NODE_IO_ERROR( wxT( "SETTINGS" ), wxT( "ASSIGNMENTS" ) );
325 }
virtual 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
#define THROW_UNKNOWN_NODE_IO_ERROR(nodename, location)
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override

References XNODE::GetChildren(), THROW_MISSING_NODE_IO_ERROR, and THROW_UNKNOWN_NODE_IO_ERROR.

Referenced by CADSTAR_SCH_ARCHIVE_PARSER::Parse().

Member Data Documentation

◆ Codedefs

◆ Grids

GRIDS CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Grids

Definition at line 121 of file cadstar_sch_archive_parser.h.

Referenced by CADSTAR_SCH_ARCHIVE_LOADER::Load().

◆ NetclassEditAttributeSettings

bool CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::NetclassEditAttributeSettings = false

Definition at line 123 of file cadstar_sch_archive_parser.h.

◆ Settings

SETTINGS CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::Settings

◆ SpacingclassEditAttributeSettings

bool CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM::SpacingclassEditAttributeSettings = false

Definition at line 124 of file cadstar_sch_archive_parser.h.


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