KiCad PCB EDA Suite
ASCH_HARNESS_ENTRY Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int OwnerPartID
 
int AreaColor
 
int Color
 
int DistanceFromTop
 
int IndexInSheet
 
int TextColor
 
int TextFontID
 
int TextStyle
 
bool OwnerIndexAdditionalList
 
wxString Name
 
ASCH_SHEET_ENTRY_SIDE Side
 

Detailed Description

Definition at line 485 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_HARNESS_ENTRY()

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

Definition at line 495 of file altium_parser_sch.cpp.

496{
497 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::HARNESS_ENTRY );
498
499 // use SCH_ALTIUM_PLUGIN::m_harnessEntryParent instead, because this property sometimes
500 // does not exist in altium file!
501 // ownerindex = ReadOwnerIndex( aProps );
502
503 OwnerPartID = ReadOwnerPartId( aProps );
504
505 IndexInSheet = ALTIUM_PARSER::ReadInt( aProps, "INDEXINSHEET", 0 );
506
507 DistanceFromTop = ReadKiCadUnitFrac1( aProps, "DISTANCEFROMTOP" );
508
509 Side = ReadEnum<ASCH_SHEET_ENTRY_SIDE>( aProps, "SIDE", 0, 3, ASCH_SHEET_ENTRY_SIDE::LEFT );
510
511 Name = ALTIUM_PARSER::ReadString( aProps, "NAME", "" );
512
513 OwnerIndexAdditionalList = ALTIUM_PARSER::ReadBool( aProps, "OWNERINDEXADDITIONALLIST", true );
514
515 Color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
516 AreaColor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR", 0 );
517 TextColor = ALTIUM_PARSER::ReadInt( aProps, "TEXTCOLOR", 0 );
518 TextFontID = ALTIUM_PARSER::ReadInt( aProps, "TEXTFONTID", 0 );
519 TextStyle = 0;
520}
int ReadOwnerPartId(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 int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
int OwnerPartID
int TextStyle
int IndexInSheet
int TextFontID
int AreaColor
int DistanceFromTop
ASCH_SHEET_ENTRY_SIDE Side
int TextColor
int Color
wxString Name
bool OwnerIndexAdditionalList

References AreaColor, Color, DistanceFromTop, HARNESS_ENTRY, IndexInSheet, LEFT, Name, OwnerIndexAdditionalList, OwnerPartID, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac1(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), Side, TextColor, TextFontID, and TextStyle.

Member Data Documentation

◆ AreaColor

int ASCH_HARNESS_ENTRY::AreaColor

Definition at line 492 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_ENTRY().

◆ Color

int ASCH_HARNESS_ENTRY::Color

Definition at line 493 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_ENTRY().

◆ DistanceFromTop

int ASCH_HARNESS_ENTRY::DistanceFromTop

◆ IndexInSheet

int ASCH_HARNESS_ENTRY::IndexInSheet

Definition at line 495 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_ENTRY().

◆ Name

wxString ASCH_HARNESS_ENTRY::Name

◆ OwnerIndexAdditionalList

bool ASCH_HARNESS_ENTRY::OwnerIndexAdditionalList

Definition at line 500 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_ENTRY().

◆ OwnerPartID

int ASCH_HARNESS_ENTRY::OwnerPartID

Definition at line 490 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_ENTRY().

◆ Side

ASCH_SHEET_ENTRY_SIDE ASCH_HARNESS_ENTRY::Side

◆ TextColor

int ASCH_HARNESS_ENTRY::TextColor

Definition at line 496 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_ENTRY().

◆ TextFontID

int ASCH_HARNESS_ENTRY::TextFontID

Definition at line 497 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_ENTRY().

◆ TextStyle

int ASCH_HARNESS_ENTRY::TextStyle

Definition at line 498 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_ENTRY().


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