KiCad PCB EDA Suite
ASCH_SHEET_ENTRY Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
int distanceFromTop
 
ASCH_SHEET_ENTRY_SIDE side
 
ASCH_PORT_IOTYPE iotype
 
ASCH_PORT_STYLE style
 
wxString name
 

Detailed Description

Definition at line 432 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET_ENTRY()

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

Definition at line 413 of file altium_parser_sch.cpp.

414 {
415  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::SHEET_ENTRY );
416 
417  ownerindex =
418  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
419  ownerpartid =
420  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", ALTIUM_COMPONENT_NONE );
421 
422  // some magic, because it stores those infos in a different unit??
423  distanceFromTop = PropertiesReadKiCadUnitFrac1( aProperties, "DISTANCEFROMTOP" );
424 
425  side = PropertiesReadEnum<ASCH_SHEET_ENTRY_SIDE>(
426  aProperties, "SIDE", 0, 3, ASCH_SHEET_ENTRY_SIDE::LEFT );
427 
428  name = ALTIUM_PARSER::PropertiesReadString( aProperties, "NAME", "" );
429 
430  iotype = PropertiesReadEnum<ASCH_PORT_IOTYPE>(
431  aProperties, "IOTYPE", 0, 3, ASCH_PORT_IOTYPE::UNSPECIFIED );
432  style = PropertiesReadEnum<ASCH_PORT_STYLE>(
433  aProperties, "STYLE", 0, 7, ASCH_PORT_STYLE::NONE_HORIZONTAL );
434 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
int distanceFromTop
ASCH_PORT_IOTYPE iotype
int ownerpartid
int ownerindex
int PropertiesReadKiCadUnitFrac1(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
ASCH_SHEET_ENTRY_SIDE side
const int ALTIUM_COMPONENT_NONE
ASCH_PORT_STYLE style
static wxString PropertiesReadString(const std::map< wxString, wxString > &aProperties, const wxString &aKey, const wxString &aDefault)
wxString name

References ALTIUM_COMPONENT_NONE, distanceFromTop, iotype, LEFT, name, NONE_HORIZONTAL, ownerindex, ownerpartid, ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac1(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), SHEET_ENTRY, side, style, and UNSPECIFIED.

Member Data Documentation

◆ distanceFromTop

int ASCH_SHEET_ENTRY::distanceFromTop

Definition at line 437 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY(), and SCH_ALTIUM_PLUGIN::ParseSheetEntry().

◆ iotype

ASCH_PORT_IOTYPE ASCH_SHEET_ENTRY::iotype

Definition at line 440 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY(), and SCH_ALTIUM_PLUGIN::ParseSheetEntry().

◆ name

wxString ASCH_SHEET_ENTRY::name

Definition at line 443 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY(), and SCH_ALTIUM_PLUGIN::ParseSheetEntry().

◆ ownerindex

int ASCH_SHEET_ENTRY::ownerindex

Definition at line 434 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY(), and SCH_ALTIUM_PLUGIN::ParseSheetEntry().

◆ ownerpartid

int ASCH_SHEET_ENTRY::ownerpartid

Definition at line 435 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY().

◆ side

ASCH_SHEET_ENTRY_SIDE ASCH_SHEET_ENTRY::side

Definition at line 439 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY(), and SCH_ALTIUM_PLUGIN::ParseSheetEntry().

◆ style

ASCH_PORT_STYLE ASCH_SHEET_ENTRY::style

Definition at line 441 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY().


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