KiCad PCB EDA Suite
CADSTAR_ARCHIVE_PARSER::CODEDEFS Struct Referenceabstract

#include <cadstar_archive_parser.h>

Inheritance diagram for CADSTAR_ARCHIVE_PARSER::CODEDEFS:
CADSTAR_ARCHIVE_PARSER::PARSER CADSTAR_PCB_ARCHIVE_PARSER::CODEDEFS_PCB CADSTAR_SCH_ARCHIVE_PARSER::CODEDEFS_SCM

Public Member Functions

bool ParseSubNode (XNODE *aChildNode, PARSER_CONTEXT *aContext)
 
virtual void Parse (XNODE *aNode, PARSER_CONTEXT *aContext)=0
 

Public Attributes

std::map< LINECODE_ID, LINECODELineCodes
 
std::map< HATCHCODE_ID, HATCHCODEHatchCodes
 
std::map< TEXTCODE_ID, TEXTCODETextCodes
 
std::map< ROUTECODE_ID, ROUTECODERouteCodes
 
std::map< ATTRIBUTE_ID, ATTRNAMEAttributeNames
 
std::map< NETCLASS_ID, CADSTAR_NETCLASSNetClasses
 
std::map< SPACING_CLASS_ID, SPCCLASSNAMESpacingClassNames
 

Detailed Description

Definition at line 787 of file cadstar_archive_parser.h.

Member Function Documentation

◆ Parse()

virtual void CADSTAR_ARCHIVE_PARSER::PARSER::Parse ( XNODE aNode,
PARSER_CONTEXT aContext 
)
pure virtualinherited

Implemented in CADSTAR_ARCHIVE_PARSER::PARTNAMECOL, CADSTAR_ARCHIVE_PARSER::ATTRCOLORS, CADSTAR_ARCHIVE_PARSER::ATTRCOL, CADSTAR_ARCHIVE_PARSER::DFLTSETTINGS, CADSTAR_ARCHIVE_PARSER::DOCUMENTATION_SYMBOL, CADSTAR_ARCHIVE_PARSER::NET::JUNCTION, CADSTAR_PCB_ARCHIVE_PARSER::COPPER, CADSTAR_ARCHIVE_PARSER::PARTS, CADSTAR_ARCHIVE_PARSER::PART, CADSTAR_ARCHIVE_PARSER::PART::PART_PIN, CADSTAR_ARCHIVE_PARSER::PART::DEFINITION, CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::SWAP_GROUP, CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::SWAP_GATE, CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN_EQUIVALENCE, CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN, CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB, CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::CONNECTION_PCB, CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::COPPER_TERMINAL, CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::VIA, CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::GATE, CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::JUNCTION_PCB, CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT, CADSTAR_ARCHIVE_PARSER::TEXT, CADSTAR_ARCHIVE_PARSER::FIGURE, CADSTAR_ARCHIVE_PARSER::GROUP, CADSTAR_PCB_ARCHIVE_PARSER::AREA, CADSTAR_ARCHIVE_PARSER::REUSEBLOCKREF, CADSTAR_ARCHIVE_PARSER::REUSEBLOCK, CADSTAR_PCB_ARCHIVE_PARSER::SYMDEF_PCB, CADSTAR_ARCHIVE_PARSER::SPCCLASSNAME, CADSTAR_ARCHIVE_PARSER::CADSTAR_NETCLASS, CADSTAR_ARCHIVE_PARSER::TEXT_LOCATION, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE, CADSTAR_ARCHIVE_PARSER::ATTRNAME, CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION, CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNWIDTH, CADSTAR_ARCHIVE_PARSER::ATTRNAME::COLUMNORDER, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_LOCATION, CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::EXTENSION_LINE, CADSTAR_PCB_ARCHIVE_PARSER::DIMENSION::ARROW, CADSTAR_ARCHIVE_PARSER::SETTINGS, CADSTAR_ARCHIVE_PARSER::GRIDS, CADSTAR_PCB_ARCHIVE_PARSER::PAD_EXITS, CADSTAR_ARCHIVE_PARSER::GRID, CADSTAR_ARCHIVE_PARSER::SHAPE, CADSTAR_ARCHIVE_PARSER::CUTOUT, CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER, CADSTAR_ARCHIVE_PARSER::VERTEX, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH, CADSTAR_PCB_ARCHIVE_PARSER::TECHNOLOGY_SECTION, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::CONNECTION_SCH, CADSTAR_ARCHIVE_PARSER::LONGPOINT, CADSTAR_ARCHIVE_PARSER::POINT, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::DANGLER, CADSTAR_PCB_ARCHIVE_PARSER::CODEDEFS_PCB, CADSTAR_ARCHIVE_PARSER::EVALUE, CADSTAR_PCB_ARCHIVE_PARSER::RULESET, CADSTAR_ARCHIVE_PARSER::ROUTECODE, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BUS_TERM, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::SYM_TERM, CADSTAR_ARCHIVE_PARSER::ROUTEREASSIGN, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::JUNCTION_SCH, CADSTAR_ARCHIVE_PARSER::TEXTCODE, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK, CADSTAR_PCB_ARCHIVE_PARSER::VIACODE, CADSTAR_ARCHIVE_PARSER::FONT, CADSTAR_SCH_ARCHIVE_PARSER::BUS, CADSTAR_ARCHIVE_PARSER::HATCHCODE, CADSTAR_PCB_ARCHIVE_PARSER::PADCODE, CADSTAR_ARCHIVE_PARSER::HATCH, CADSTAR_SCH_ARCHIVE_PARSER::SIGLOC, CADSTAR_ARCHIVE_PARSER::LINECODE, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL, CADSTAR_PCB_ARCHIVE_PARSER::CADSTAR_PAD_SHAPE, CADSTAR_ARCHIVE_PARSER::VARIANT_HIERARCHY, CADSTAR_ARCHIVE_PARSER::VARIANT, CADSTAR_ARCHIVE_PARSER::HEADER, CADSTAR_SCH_ARCHIVE_PARSER::SIGNALREFERENCELINK, CADSTAR_ARCHIVE_PARSER::TIMESTAMP, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT, CADSTAR_ARCHIVE_PARSER::FORMAT, CADSTAR_SCH_ARCHIVE_PARSER::SYMPINNAME_LABEL, CADSTAR_SCH_ARCHIVE_PARSER::PARTREF, CADSTAR_SCH_ARCHIVE_PARSER::COMP, CADSTAR_SCH_ARCHIVE_PARSER::SHEETS, CADSTAR_SCH_ARCHIVE_PARSER::SYMDEF_SCM, CADSTAR_SCH_ARCHIVE_PARSER::PIN_NUM_LABEL_LOC, CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL, CADSTAR_SCH_ARCHIVE_PARSER::ASSIGNMENTS_SCM, CADSTAR_SCH_ARCHIVE_PARSER::CODEDEFS_SCM, and CADSTAR_SCH_ARCHIVE_PARSER::TERMINAL_SHAPE.

◆ ParseSubNode()

bool CADSTAR_ARCHIVE_PARSER::CODEDEFS::ParseSubNode ( XNODE aChildNode,
PARSER_CONTEXT aContext 
)

Definition at line 1345 of file cadstar_archive_parser.cpp.

1346 {
1347  wxString nodeName = aChildNode->GetName();
1348 
1349  if( nodeName == wxT( "LINECODE" ) )
1350  {
1351  LINECODE linecode;
1352  linecode.Parse( aChildNode, aContext );
1353  LineCodes.insert( std::make_pair( linecode.ID, linecode ) );
1354  }
1355  else if( nodeName == wxT( "HATCHCODE" ) )
1356  {
1357  HATCHCODE hatchcode;
1358  hatchcode.Parse( aChildNode, aContext );
1359  HatchCodes.insert( std::make_pair( hatchcode.ID, hatchcode ) );
1360  }
1361  else if( nodeName == wxT( "TEXTCODE" ) )
1362  {
1363  TEXTCODE textcode;
1364  textcode.Parse( aChildNode, aContext );
1365  TextCodes.insert( std::make_pair( textcode.ID, textcode ) );
1366  }
1367  else if( nodeName == wxT( "ROUTECODE" ) )
1368  {
1369  ROUTECODE routecode;
1370  routecode.Parse( aChildNode, aContext );
1371  RouteCodes.insert( std::make_pair( routecode.ID, routecode ) );
1372  }
1373  else if( nodeName == wxT( "ATTRNAME" ) )
1374  {
1375  ATTRNAME attrname;
1376  attrname.Parse( aChildNode, aContext );
1377  AttributeNames.insert( std::make_pair( attrname.ID, attrname ) );
1378  }
1379  else if( nodeName == wxT( "NETCLASS" ) )
1380  {
1381  CADSTAR_NETCLASS netclass;
1382  netclass.Parse( aChildNode, aContext );
1383  NetClasses.insert( std::make_pair( netclass.ID, netclass ) );
1384  }
1385  else if( nodeName == wxT( "SPCCLASSNAME" ) )
1386  {
1387  SPCCLASSNAME spcclassname;
1388  spcclassname.Parse( aChildNode, aContext );
1389  SpacingClassNames.insert( std::make_pair( spcclassname.ID, spcclassname ) );
1390  }
1391  else
1392  {
1393  return false;
1394  }
1395 
1396  return true;
1397 }
std::map< ROUTECODE_ID, ROUTECODE > RouteCodes
std::map< ATTRIBUTE_ID, ATTRNAME > AttributeNames
std::map< LINECODE_ID, LINECODE > LineCodes
std::map< NETCLASS_ID, CADSTAR_NETCLASS > NetClasses
std::map< TEXTCODE_ID, TEXTCODE > TextCodes
std::map< SPACING_CLASS_ID, SPCCLASSNAME > SpacingClassNames
std::map< HATCHCODE_ID, HATCHCODE > HatchCodes

References CADSTAR_ARCHIVE_PARSER::LINECODE::ID, CADSTAR_ARCHIVE_PARSER::HATCHCODE::ID, CADSTAR_ARCHIVE_PARSER::TEXTCODE::ID, CADSTAR_ARCHIVE_PARSER::ROUTECODE::ID, CADSTAR_ARCHIVE_PARSER::ATTRNAME::ID, CADSTAR_ARCHIVE_PARSER::CADSTAR_NETCLASS::ID, CADSTAR_ARCHIVE_PARSER::SPCCLASSNAME::ID, CADSTAR_ARCHIVE_PARSER::LINECODE::Parse(), CADSTAR_ARCHIVE_PARSER::HATCHCODE::Parse(), CADSTAR_ARCHIVE_PARSER::TEXTCODE::Parse(), CADSTAR_ARCHIVE_PARSER::ROUTECODE::Parse(), CADSTAR_ARCHIVE_PARSER::ATTRNAME::Parse(), CADSTAR_ARCHIVE_PARSER::CADSTAR_NETCLASS::Parse(), and CADSTAR_ARCHIVE_PARSER::SPCCLASSNAME::Parse().

Member Data Documentation

◆ AttributeNames

std::map<ATTRIBUTE_ID, ATTRNAME> CADSTAR_ARCHIVE_PARSER::CODEDEFS::AttributeNames

◆ HatchCodes

std::map<HATCHCODE_ID, HATCHCODE> CADSTAR_ARCHIVE_PARSER::CODEDEFS::HatchCodes

Definition at line 790 of file cadstar_archive_parser.h.

Referenced by CADSTAR_PCB_ARCHIVE_LOADER::getHatchCode().

◆ LineCodes

◆ NetClasses

std::map<NETCLASS_ID, CADSTAR_NETCLASS> CADSTAR_ARCHIVE_PARSER::CODEDEFS::NetClasses

Definition at line 794 of file cadstar_archive_parser.h.

Referenced by CADSTAR_PCB_ARCHIVE_LOADER::getKiCadNet().

◆ RouteCodes

std::map<ROUTECODE_ID, ROUTECODE> CADSTAR_ARCHIVE_PARSER::CODEDEFS::RouteCodes

◆ SpacingClassNames

std::map<SPACING_CLASS_ID, SPCCLASSNAME> CADSTAR_ARCHIVE_PARSER::CODEDEFS::SpacingClassNames

Definition at line 795 of file cadstar_archive_parser.h.

Referenced by CADSTAR_PCB_ARCHIVE_LOADER::getKiCadNet().

◆ TextCodes

std::map<TEXTCODE_ID, TEXTCODE> CADSTAR_ARCHIVE_PARSER::CODEDEFS::TextCodes

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