KiCad PCB EDA Suite
ASCH_JUNCTION Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerpartid
 
wxPoint location
 

Detailed Description

Definition at line 544 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_JUNCTION()

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

Definition at line 548 of file altium_parser_sch.cpp.

549 {
550  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::JUNCTION );
551 
552  ownerpartid = ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", -1 );
553 
554  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
555  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
556 }
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)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)

References JUNCTION, location, ownerpartid, ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), and PropertiesReadRecord().

Member Data Documentation

◆ location

wxPoint ASCH_JUNCTION::location

Definition at line 548 of file altium_parser_sch.h.

Referenced by ASCH_JUNCTION(), and SCH_ALTIUM_PLUGIN::ParseJunction().

◆ ownerpartid

int ASCH_JUNCTION::ownerpartid

Definition at line 546 of file altium_parser_sch.h.

Referenced by ASCH_JUNCTION().


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