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 576 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 582 of file altium_parser_sch.cpp.

583{
584 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET_ENTRY );
585
586 ownerindex = ReadOwnerIndex( aProps );
587 ownerpartid = ReadOwnerPartId( aProps );
588
589 // some magic, because it stores those infos in a different unit??
590 distanceFromTop = ReadKiCadUnitFrac1( aProps, "DISTANCEFROMTOP" );
591
592 side = ReadEnum<ASCH_SHEET_ENTRY_SIDE>( aProps, "SIDE", 0, 3, ASCH_SHEET_ENTRY_SIDE::LEFT );
593
594 name = ALTIUM_PARSER::ReadString( aProps, "NAME", "" );
595
596 iotype = ReadEnum<ASCH_PORT_IOTYPE>( aProps, "IOTYPE", 0, 3, ASCH_PORT_IOTYPE::UNSPECIFIED );
597 style = ReadEnum<ASCH_PORT_STYLE>( aProps, "STYLE", 0, 7, ASCH_PORT_STYLE::NONE_HORIZONTAL );
598}
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)
int ReadKiCadUnitFrac1(const std::map< wxString, wxString > &aProps, const wxString &aKey)
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)
int ownerpartid
wxString name
int distanceFromTop
ASCH_SHEET_ENTRY_SIDE side
ASCH_PORT_IOTYPE iotype
ASCH_PORT_STYLE style
int ownerindex

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 581 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 584 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 587 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 578 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 579 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_ENTRY().

◆ side

ASCH_SHEET_ENTRY_SIDE ASCH_SHEET_ENTRY::side

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

Referenced by ASCH_SHEET_ENTRY().


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