KiCad PCB EDA Suite
CADSTAR_ARCHIVE_PARSER::NET::CONNECTION Struct Referenceabstract

< "CONN" nodename More...

#include <cadstar_archive_parser.h>

Inheritance diagram for CADSTAR_ARCHIVE_PARSER::NET::CONNECTION:
CADSTAR_ARCHIVE_PARSER::PARSER CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB::CONNECTION_PCB CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::CONNECTION_SCH

Public Member Functions

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

Public Attributes

NETELEMENT_ID StartNode
 
NETELEMENT_ID EndNode
 
ROUTECODE_ID RouteCodeID
 
bool Fixed = false
 
bool Hidden = false
 
GROUP_ID GroupID = wxEmptyString
 If not empty, this connection is part of a group. More...
 
REUSEBLOCKREF ReuseBlockRef
 
std::map< ATTRIBUTE_ID, ATTRIBUTE_VALUEAttributeValues
 It is possible to add attributes solely to a particular connection. More...
 

Detailed Description

< "CONN" nodename

Definition at line 1158 of file cadstar_archive_parser.h.

Constructor & Destructor Documentation

◆ ~CONNECTION()

virtual CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::~CONNECTION ( )
inlinevirtual

Definition at line 1175 of file cadstar_archive_parser.h.

1175 {}

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.

◆ ParseIdentifiers()

void CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::ParseIdentifiers ( XNODE aNode,
PARSER_CONTEXT aContext 
)

Definition at line 2018 of file cadstar_archive_parser.cpp.

2020 {
2021  wxASSERT( aNode->GetName() == wxT( "CONN" ) );
2022 
2023  StartNode = GetXmlAttributeIDString( aNode, 0 );
2024  EndNode = GetXmlAttributeIDString( aNode, 1 );
2025  RouteCodeID = GetXmlAttributeIDString( aNode, 2 );
2026 }
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)

References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString().

◆ ParseSubNode()

bool CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::ParseSubNode ( XNODE aChildNode,
PARSER_CONTEXT aContext 
)

Definition at line 2029 of file cadstar_archive_parser.cpp.

2031 {
2032  wxString cNodeName = aChildNode->GetName();
2033 
2034  if( cNodeName == wxT( "FIX" ) )
2035  {
2036  Fixed = true;
2037  }
2038  else if( cNodeName == wxT( "HIDDEN" ) )
2039  {
2040  Hidden = true;
2041  }
2042  else if( cNodeName == wxT( "GROUPREF" ) )
2043  {
2044  GroupID = GetXmlAttributeIDString( aChildNode, 0 );
2045  }
2046  else if( cNodeName == wxT( "REUSEBLOCKREF" ) )
2047  {
2048  ReuseBlockRef.Parse( aChildNode, aContext );
2049  }
2050  else if( cNodeName == wxT( "ATTR" ) )
2051  {
2052  ATTRIBUTE_VALUE attrVal;
2053  attrVal.Parse( aChildNode, aContext );
2054  AttributeValues.insert( std::make_pair( attrVal.AttributeID, attrVal ) );
2055  }
2056  else
2057  {
2058  return false;
2059  }
2060 
2061  return true;
2062 }
void Parse(XNODE *aNode, PARSER_CONTEXT *aContext) override
GROUP_ID GroupID
If not empty, this connection is part of a group.
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)
std::map< ATTRIBUTE_ID, ATTRIBUTE_VALUE > AttributeValues
It is possible to add attributes solely to a particular connection.

References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::AttributeID, CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), and CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::Parse().

Member Data Documentation

◆ AttributeValues

std::map<ATTRIBUTE_ID, ATTRIBUTE_VALUE> CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::AttributeValues

It is possible to add attributes solely to a particular connection.

Definition at line 1169 of file cadstar_archive_parser.h.

◆ EndNode

NETELEMENT_ID CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::EndNode

Definition at line 1161 of file cadstar_archive_parser.h.

◆ Fixed

bool CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::Fixed = false

Definition at line 1164 of file cadstar_archive_parser.h.

◆ GroupID

GROUP_ID CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::GroupID = wxEmptyString

If not empty, this connection is part of a group.

Definition at line 1166 of file cadstar_archive_parser.h.

◆ Hidden

bool CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::Hidden = false

Definition at line 1165 of file cadstar_archive_parser.h.

◆ ReuseBlockRef

REUSEBLOCKREF CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::ReuseBlockRef

Definition at line 1167 of file cadstar_archive_parser.h.

◆ RouteCodeID

ROUTECODE_ID CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::RouteCodeID

Definition at line 1162 of file cadstar_archive_parser.h.

◆ StartNode

NETELEMENT_ID CADSTAR_ARCHIVE_PARSER::NET::CONNECTION::StartNode

Definition at line 1160 of file cadstar_archive_parser.h.


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