KiCad PCB EDA Suite
ASCH_PORT Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 520 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_PORT()

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

Definition at line 473 of file altium_parser_sch.cpp.

474 {
475  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::PORT );
476 
477  ownerpartid = ReadOwnerPartId( aProps );
478 
479  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
480  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
481 
482  name = ALTIUM_PARSER::ReadString( aProps, "NAME", "" );
483  harnessType = ALTIUM_PARSER::ReadString( aProps, "HARNESSTYPE", "" );
484 
485  width = ReadKiCadUnitFrac( aProps, "WIDTH" );
486  height = ReadKiCadUnitFrac( aProps, "HEIGHT" );
487 
488  iotype = ReadEnum<ASCH_PORT_IOTYPE>( aProps, "IOTYPE", 0, 3, ASCH_PORT_IOTYPE::UNSPECIFIED );
489  style = ReadEnum<ASCH_PORT_STYLE>( aProps, "STYLE", 0, 7, ASCH_PORT_STYLE::NONE_HORIZONTAL );
490 }
wxPoint location
wxString harnessType
ASCH_PORT_STYLE style
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
ASCH_PORT_IOTYPE iotype
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)

References harnessType, height, iotype, location, name, NONE_HORIZONTAL, ownerpartid, PORT, ReadKiCadUnitFrac(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), style, UNSPECIFIED, and width.

Member Data Documentation

◆ harnessType

wxString ASCH_PORT::harnessType

Definition at line 525 of file altium_parser_sch.h.

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

◆ height

int ASCH_PORT::height

Definition at line 529 of file altium_parser_sch.h.

Referenced by ASCH_PORT().

◆ iotype

ASCH_PORT_IOTYPE ASCH_PORT::iotype

Definition at line 531 of file altium_parser_sch.h.

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

◆ location

wxPoint ASCH_PORT::location

Definition at line 527 of file altium_parser_sch.h.

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

◆ name

wxString ASCH_PORT::name

Definition at line 524 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_PORT::ownerpartid

Definition at line 522 of file altium_parser_sch.h.

Referenced by ASCH_PORT().

◆ style

ASCH_PORT_STYLE ASCH_PORT::style

Definition at line 532 of file altium_parser_sch.h.

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

◆ width

int ASCH_PORT::width

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