KiCad PCB EDA Suite
ASCH_BUS Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

 ASCH_BUS (const std::map< wxString, wxString > &aProperties)
 

Public Attributes

int indexinsheet
 
int lineWidth
 
std::vector< wxPoint > points
 

Detailed Description

Definition at line 522 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_BUS()

ASCH_BUS::ASCH_BUS ( const std::map< wxString, wxString > &  aProperties)
explicit

Definition at line 504 of file altium_parser_sch.cpp.

505 {
506  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::BUS );
507 
508  indexinsheet = ALTIUM_PARSER::PropertiesReadInt( aProperties, "INDEXINSHEET", 0 );
509 
510  int locationcount = ALTIUM_PARSER::PropertiesReadInt( aProperties, "LOCATIONCOUNT", 0 );
511  for( int i = 1; i <= locationcount; i++ )
512  {
513  const wxString si = std::to_string( i );
514  points.emplace_back( PropertiesReadKiCadUnitFrac( aProperties, "X" + si ),
515  -PropertiesReadKiCadUnitFrac( aProperties, "Y" + si ) );
516  }
517 
518  lineWidth = PropertiesReadKiCadUnitFrac( aProperties, "LINEWIDTH" );
519 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
std::vector< wxPoint > points
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)

References BUS, indexinsheet, lineWidth, points, ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), and PropertiesReadRecord().

Member Data Documentation

◆ indexinsheet

int ASCH_BUS::indexinsheet

Definition at line 524 of file altium_parser_sch.h.

Referenced by ASCH_BUS().

◆ lineWidth

int ASCH_BUS::lineWidth

Definition at line 525 of file altium_parser_sch.h.

Referenced by ASCH_BUS(), and SCH_ALTIUM_PLUGIN::ParseBus().

◆ points

std::vector<wxPoint> ASCH_BUS::points

Definition at line 527 of file altium_parser_sch.h.

Referenced by ASCH_BUS(), and SCH_ALTIUM_PLUGIN::ParseBus().


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