KiCad PCB EDA Suite
CADSTAR_ARCHIVE_PARSER::NET Struct Referenceabstract

#include <cadstar_archive_parser.h>

Inheritance diagram for CADSTAR_ARCHIVE_PARSER::NET:
CADSTAR_ARCHIVE_PARSER::PARSER CADSTAR_PCB_ARCHIVE_PARSER::NET_PCB CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH

Classes

struct  CONNECTION
 < "CONN" nodename More...
 
struct  JUNCTION
 < "JPT" nodename. More...
 

Public Member Functions

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

Public Attributes

NET_ID ID
 
ROUTECODE_ID RouteCodeID = wxEmptyString
 "NETCODE" subnode More...
 
long SignalNum = UNDEFINED_VALUE
 This is undefined if the net has been given a name. More...
 
wxString Name = wxEmptyString
 This is undefined (wxEmptyString) if the net is unnamed. More...
 
bool Highlight = false
 
std::map< NETELEMENT_ID, JUNCTIONJunctions
 
std::map< ATTRIBUTE_ID, ATTRIBUTE_VALUEAttributeValues
 
NETCLASS_ID NetClassID
 The net might not have a net class, in which case it will be wxEmptyString ("NETCLASSREF" subnode) More...
 
SPACING_CLASS_ID SpacingClassID
 The net might not have a spacing class, in which case it will be wxEmptyString ("SPACINGCLASS" subnode) More...
 

Detailed Description

Definition at line 1128 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_PCB_ARCHIVE_PARSER::COPPER, CADSTAR_ARCHIVE_PARSER::NET::JUNCTION, 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_PCB_ARCHIVE_PARSER::NET_PCB, CADSTAR_ARCHIVE_PARSER::PART::DEFINITION::PIN, 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_PCB_ARCHIVE_PARSER::AREA, CADSTAR_ARCHIVE_PARSER::GROUP, 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_PCB_ARCHIVE_PARSER::PAD_EXITS, CADSTAR_ARCHIVE_PARSER::GRIDS, CADSTAR_ARCHIVE_PARSER::GRID, CADSTAR_ARCHIVE_PARSER::SHAPE, CADSTAR_PCB_ARCHIVE_PARSER::COMPONENT_COPPER, CADSTAR_ARCHIVE_PARSER::CUTOUT, 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_SCH_ARCHIVE_PARSER::NET_SCH::DANGLER, CADSTAR_ARCHIVE_PARSER::LONGPOINT, CADSTAR_PCB_ARCHIVE_PARSER::CODEDEFS_PCB, CADSTAR_ARCHIVE_PARSER::POINT, CADSTAR_PCB_ARCHIVE_PARSER::RULESET, CADSTAR_ARCHIVE_PARSER::EVALUE, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::BUS_TERM, CADSTAR_ARCHIVE_PARSER::ROUTECODE, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::SYM_TERM, CADSTAR_SCH_ARCHIVE_PARSER::NET_SCH::JUNCTION_SCH, CADSTAR_ARCHIVE_PARSER::ROUTEREASSIGN, CADSTAR_SCH_ARCHIVE_PARSER::BLOCK, CADSTAR_ARCHIVE_PARSER::TEXTCODE, CADSTAR_PCB_ARCHIVE_PARSER::VIACODE, CADSTAR_ARCHIVE_PARSER::FONT, CADSTAR_SCH_ARCHIVE_PARSER::BUS, CADSTAR_PCB_ARCHIVE_PARSER::PADCODE, CADSTAR_ARCHIVE_PARSER::HATCHCODE, CADSTAR_SCH_ARCHIVE_PARSER::SIGLOC, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOL, CADSTAR_ARCHIVE_PARSER::HATCH, CADSTAR_ARCHIVE_PARSER::LINECODE, CADSTAR_ARCHIVE_PARSER::VARIANT_HIERARCHY, CADSTAR_ARCHIVE_PARSER::VARIANT, CADSTAR_ARCHIVE_PARSER::HEADER, CADSTAR_SCH_ARCHIVE_PARSER::SIGNALREFERENCELINK, CADSTAR_SCH_ARCHIVE_PARSER::SYMBOLVARIANT, CADSTAR_ARCHIVE_PARSER::TIMESTAMP, CADSTAR_SCH_ARCHIVE_PARSER::SYMPINNAME_LABEL, CADSTAR_ARCHIVE_PARSER::FORMAT, 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::ParseIdentifiers ( XNODE aNode,
PARSER_CONTEXT aContext 
)

Definition at line 2048 of file cadstar_archive_parser.cpp.

2049 {
2050  wxASSERT( aNode->GetName() == wxT( "NET" ) );
2051 
2052  ID = GetXmlAttributeIDString( aNode, 0 );
2053 }
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)

References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString().

◆ ParseSubNode()

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

Definition at line 2056 of file cadstar_archive_parser.cpp.

2057 {
2058  wxString cNodeName = aChildNode->GetName();
2059 
2060  if( cNodeName == wxT( "NETCODE" ) )
2061  {
2062  RouteCodeID = GetXmlAttributeIDString( aChildNode, 0 );
2063  }
2064  else if( cNodeName == wxT( "SIGNAME" ) )
2065  {
2066  Name = GetXmlAttributeIDString( aChildNode, 0 );
2067  }
2068  else if( cNodeName == wxT( "SIGNUM" ) )
2069  {
2070  SignalNum = GetXmlAttributeIDLong( aChildNode, 0 );
2071  }
2072  else if( cNodeName == wxT( "HIGHLIT" ) )
2073  {
2074  Highlight = true;
2075  }
2076  else if( cNodeName == wxT( "JPT" ) )
2077  {
2078  JUNCTION jpt;
2079  jpt.Parse( aChildNode, aContext );
2080  Junctions.insert( std::make_pair( jpt.ID, jpt ) );
2081  }
2082  else if( cNodeName == wxT( "NETCLASSREF" ) )
2083  {
2084  NetClassID = GetXmlAttributeIDString( aChildNode, 0 );
2085  }
2086  else if( cNodeName == wxT( "SPACINGCLASS" ) )
2087  {
2088  SpacingClassID = GetXmlAttributeIDString( aChildNode, 0 );
2089  }
2090  else if( cNodeName == wxT( "ATTR" ) )
2091  {
2092  ATTRIBUTE_VALUE attrVal;
2093  attrVal.Parse( aChildNode, aContext );
2094  AttributeValues.insert( std::make_pair( attrVal.AttributeID, attrVal ) );
2095  }
2096  else
2097  {
2098  return false;
2099  }
2100 
2101  return true;
2102 }
long SignalNum
This is undefined if the net has been given a name.
std::map< NETELEMENT_ID, JUNCTION > Junctions
ROUTECODE_ID RouteCodeID
"NETCODE" subnode
static long GetXmlAttributeIDLong(XNODE *aNode, unsigned int aID, bool aIsRequired=true)
std::map< ATTRIBUTE_ID, ATTRIBUTE_VALUE > AttributeValues
wxString Name
This is undefined (wxEmptyString) if the net is unnamed.
NETCLASS_ID NetClassID
The net might not have a net class, in which case it will be wxEmptyString ("NETCLASSREF" subnode)
static wxString GetXmlAttributeIDString(XNODE *aNode, unsigned int aID, bool aIsRequired=true)
SPACING_CLASS_ID SpacingClassID
The net might not have a spacing class, in which case it will be wxEmptyString ("SPACINGCLASS" subnod...

References CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::AttributeID, CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDString(), CADSTAR_ARCHIVE_PARSER::NET::JUNCTION::ID, CADSTAR_ARCHIVE_PARSER::ATTRIBUTE_VALUE::Parse(), and CADSTAR_ARCHIVE_PARSER::NET::JUNCTION::Parse().

Member Data Documentation

◆ AttributeValues

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

Definition at line 1175 of file cadstar_archive_parser.h.

◆ Highlight

bool CADSTAR_ARCHIVE_PARSER::NET::Highlight = false

Definition at line 1172 of file cadstar_archive_parser.h.

◆ ID

◆ Junctions

std::map<NETELEMENT_ID, JUNCTION> CADSTAR_ARCHIVE_PARSER::NET::Junctions

Definition at line 1174 of file cadstar_archive_parser.h.

◆ Name

wxString CADSTAR_ARCHIVE_PARSER::NET::Name = wxEmptyString

This is undefined (wxEmptyString) if the net is unnamed.

"SIGNAME" subnode

Definition at line 1170 of file cadstar_archive_parser.h.

Referenced by CADSTAR_SCH_ARCHIVE_LOADER::getNetName(), CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), CADSTAR_PCB_ARCHIVE_LOADER::loadNets(), and CADSTAR_PCB_ARCHIVE_LOADER::loadTemplates().

◆ NetClassID

NETCLASS_ID CADSTAR_ARCHIVE_PARSER::NET::NetClassID
Initial value:
=
wxEmptyString

The net might not have a net class, in which case it will be wxEmptyString ("NETCLASSREF" subnode)

Definition at line 1177 of file cadstar_archive_parser.h.

◆ RouteCodeID

ROUTECODE_ID CADSTAR_ARCHIVE_PARSER::NET::RouteCodeID = wxEmptyString

"NETCODE" subnode

Definition at line 1167 of file cadstar_archive_parser.h.

◆ SignalNum

long CADSTAR_ARCHIVE_PARSER::NET::SignalNum = UNDEFINED_VALUE

This is undefined if the net has been given a name.

"SIGNUM" subnode.

Definition at line 1168 of file cadstar_archive_parser.h.

Referenced by CADSTAR_SCH_ARCHIVE_LOADER::getNetName(), CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), and CADSTAR_PCB_ARCHIVE_LOADER::loadNets().

◆ SpacingClassID

SPACING_CLASS_ID CADSTAR_ARCHIVE_PARSER::NET::SpacingClassID
Initial value:
=
wxEmptyString

The net might not have a spacing class, in which case it will be wxEmptyString ("SPACINGCLASS" subnode)

Definition at line 1180 of file cadstar_archive_parser.h.


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