KiCad PCB EDA Suite
ASCH_BUS Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 561 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_BUS()

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

Definition at line 519 of file altium_parser_sch.cpp.

520 {
521  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::BUS );
522 
523  indexinsheet = ALTIUM_PARSER::ReadInt( aProps, "INDEXINSHEET", 0 );
524 
525  int locationcount = ALTIUM_PARSER::ReadInt( aProps, "LOCATIONCOUNT", 0 );
526 
527  for( int i = 1; i <= locationcount; i++ )
528  {
529  const wxString si = std::to_string( i );
530  points.emplace_back( ReadKiCadUnitFrac( aProps, "X" + si ),
531  -ReadKiCadUnitFrac( aProps, "Y" + si ) );
532  }
533 
534  lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
535 }
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
std::vector< wxPoint > points
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)

References BUS, indexinsheet, lineWidth, points, ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), and ReadRecord().

Member Data Documentation

◆ indexinsheet

int ASCH_BUS::indexinsheet

Definition at line 563 of file altium_parser_sch.h.

Referenced by ASCH_BUS().

◆ lineWidth

int ASCH_BUS::lineWidth

Definition at line 564 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 566 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: