KiCad PCB EDA Suite
ASCH_POWER_PORT Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerpartid
 
wxString text
 
bool showNetName
 
wxPoint location
 
ASCH_RECORD_ORIENTATION orientation
 
ASCH_POWER_PORT_STYLE style
 

Detailed Description

Definition at line 505 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_POWER_PORT()

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

Definition at line 454 of file altium_parser_sch.cpp.

455 {
456  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::POWER_PORT );
457 
458  ownerpartid = ReadOwnerPartId( aProps );
459 
460  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
461  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
462 
463  orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
465 
466  text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
467  showNetName = ALTIUM_PARSER::ReadBool( aProps, "SHOWNETNAME", true );
468 
469  style = ReadEnum<ASCH_POWER_PORT_STYLE>( aProps, "STYLE", 0, 10,
471 }
ASCH_POWER_PORT_STYLE style
ASCH_RECORD_ORIENTATION orientation
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
int ReadKiCadUnitFrac(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)
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)

References CIRCLE, location, orientation, ownerpartid, POWER_PORT, ALTIUM_PARSER::ReadBool(), ReadKiCadUnitFrac(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), RIGHTWARDS, showNetName, style, and text.

Member Data Documentation

◆ location

wxPoint ASCH_POWER_PORT::location

Definition at line 512 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT(), and SCH_ALTIUM_PLUGIN::ParsePowerPort().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_POWER_PORT::orientation

Definition at line 513 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT(), and SCH_ALTIUM_PLUGIN::ParsePowerPort().

◆ ownerpartid

int ASCH_POWER_PORT::ownerpartid

Definition at line 507 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT().

◆ showNetName

bool ASCH_POWER_PORT::showNetName

Definition at line 510 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT(), and SCH_ALTIUM_PLUGIN::ParsePowerPort().

◆ style

ASCH_POWER_PORT_STYLE ASCH_POWER_PORT::style

Definition at line 514 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT(), and SCH_ALTIUM_PLUGIN::ParsePowerPort().

◆ text

wxString ASCH_POWER_PORT::text

Definition at line 509 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT(), and SCH_ALTIUM_PLUGIN::ParsePowerPort().


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