KiCad PCB EDA Suite
ASCH_PORT Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerpartid
 
wxString name
 
wxPoint location
 
int width
 
int height
 
ASCH_PORT_IOTYPE iotype
 
ASCH_PORT_STYLE style
 

Detailed Description

Definition at line 482 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_PORT()

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

Definition at line 456 of file altium_parser_sch.cpp.

457 {
458  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::PORT );
459 
460  ownerpartid =
461  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", ALTIUM_COMPONENT_NONE );
462 
463  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
464  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
465 
466  name = ALTIUM_PARSER::PropertiesReadString( aProperties, "NAME", "" );
467 
468  width = PropertiesReadKiCadUnitFrac( aProperties, "WIDTH" );
469  height = PropertiesReadKiCadUnitFrac( aProperties, "HEIGHT" );
470 
471  iotype = PropertiesReadEnum<ASCH_PORT_IOTYPE>(
472  aProperties, "IOTYPE", 0, 3, ASCH_PORT_IOTYPE::UNSPECIFIED );
473  style = PropertiesReadEnum<ASCH_PORT_STYLE>(
474  aProperties, "STYLE", 0, 7, ASCH_PORT_STYLE::NONE_HORIZONTAL );
475 }
wxPoint location
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
ASCH_PORT_STYLE style
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ASCH_PORT_IOTYPE iotype
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
const int ALTIUM_COMPONENT_NONE
static wxString PropertiesReadString(const std::map< wxString, wxString > &aProperties, const wxString &aKey, const wxString &aDefault)

References ALTIUM_COMPONENT_NONE, height, iotype, location, name, NONE_HORIZONTAL, ownerpartid, PORT, ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), style, UNSPECIFIED, and width.

Member Data Documentation

◆ height

int ASCH_PORT::height

Definition at line 490 of file altium_parser_sch.h.

Referenced by ASCH_PORT().

◆ iotype

ASCH_PORT_IOTYPE ASCH_PORT::iotype

Definition at line 492 of file altium_parser_sch.h.

Referenced by ASCH_PORT(), and SCH_ALTIUM_PLUGIN::ParsePort().

◆ location

wxPoint ASCH_PORT::location

Definition at line 488 of file altium_parser_sch.h.

Referenced by ASCH_PORT(), and SCH_ALTIUM_PLUGIN::ParsePort().

◆ name

wxString ASCH_PORT::name

Definition at line 486 of file altium_parser_sch.h.

Referenced by ASCH_PORT(), and SCH_ALTIUM_PLUGIN::ParsePort().

◆ ownerpartid

int ASCH_PORT::ownerpartid

Definition at line 484 of file altium_parser_sch.h.

Referenced by ASCH_PORT().

◆ style

ASCH_PORT_STYLE ASCH_PORT::style

Definition at line 493 of file altium_parser_sch.h.

Referenced by ASCH_PORT(), and SCH_ALTIUM_PLUGIN::ParsePort().

◆ width

int ASCH_PORT::width

Definition at line 489 of file altium_parser_sch.h.

Referenced by ASCH_PORT(), and SCH_ALTIUM_PLUGIN::ParsePort().


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