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 > &aProps)
 

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 470 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET_ENTRY()

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

Definition at line 435 of file altium_parser_sch.cpp.

436 {
437  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET_ENTRY );
438 
439  ownerindex = ReadOwnerIndex( aProps );
440  ownerpartid = ReadOwnerPartId( aProps );
441 
442  // some magic, because it stores those infos in a different unit??
443  distanceFromTop = ReadKiCadUnitFrac1( aProps, "DISTANCEFROMTOP" );
444 
445  side = ReadEnum<ASCH_SHEET_ENTRY_SIDE>( aProps, "SIDE", 0, 3, ASCH_SHEET_ENTRY_SIDE::LEFT );
446 
447  name = ALTIUM_PARSER::ReadString( aProps, "NAME", "" );
448 
449  iotype = ReadEnum<ASCH_PORT_IOTYPE>( aProps, "IOTYPE", 0, 3, ASCH_PORT_IOTYPE::UNSPECIFIED );
450  style = ReadEnum<ASCH_PORT_STYLE>( aProps, "STYLE", 0, 7, ASCH_PORT_STYLE::NONE_HORIZONTAL );
451 }
int distanceFromTop
ASCH_PORT_IOTYPE iotype
int ownerpartid
int ownerindex
int ReadKiCadUnitFrac1(const std::map< wxString, wxString > &aProps, const wxString &aKey)
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
ASCH_SHEET_ENTRY_SIDE side
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)
ASCH_PORT_STYLE style
wxString name

References distanceFromTop, iotype, LEFT, name, NONE_HORIZONTAL, ownerindex, ownerpartid, ReadKiCadUnitFrac1(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), SHEET_ENTRY, side, style, and UNSPECIFIED.

Member Data Documentation

◆ distanceFromTop

int ASCH_SHEET_ENTRY::distanceFromTop

Definition at line 475 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 478 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 481 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 472 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 473 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY().

◆ side

ASCH_SHEET_ENTRY_SIDE ASCH_SHEET_ENTRY::side

Definition at line 477 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 479 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY().


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