KiCad PCB EDA Suite
ASCH_COMPONENT Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int currentpartid
 
wxString libreference
 
wxString sourcelibraryname
 
wxString componentdescription
 
int orientation
 
bool isMirrored
 
wxPoint location
 
int partcount
 
int displaymodecount
 
int displaymode
 

Detailed Description

Definition at line 108 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_COMPONENT()

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

Definition at line 94 of file altium_parser_sch.cpp.

95 {
96  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::COMPONENT );
97 
99  ALTIUM_PARSER::PropertiesReadInt( aProperties, "CURRENTPARTID", ALTIUM_COMPONENT_NONE );
100  libreference = ALTIUM_PARSER::PropertiesReadString( aProperties, "LIBREFERENCE", "" );
101  sourcelibraryname = ALTIUM_PARSER::PropertiesReadString( aProperties, "SOURCELIBRARYNAME", "" );
103  ALTIUM_PARSER::PropertiesReadString( aProperties, "COMPONENTDESCRIPTION", "" );
104 
105  orientation = ALTIUM_PARSER::PropertiesReadInt( aProperties, "ORIENTATION", 0 );
106  isMirrored = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ISMIRRORED", false );
107  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
108  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
109 
110  partcount = ALTIUM_PARSER::PropertiesReadInt( aProperties, "PARTCOUNT", 0 );
111  displaymodecount = ALTIUM_PARSER::PropertiesReadInt( aProperties, "DISPLAYMODECOUNT", 0 );
112  displaymode = ALTIUM_PARSER::PropertiesReadInt( aProperties, "DISPLAYMODE", 0 );
113 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
static bool PropertiesReadBool(const std::map< wxString, wxString > &aProperties, const wxString &aKey, bool aDefault)
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
wxString componentdescription
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
wxString sourcelibraryname
const int ALTIUM_COMPONENT_NONE
static wxString PropertiesReadString(const std::map< wxString, wxString > &aProperties, const wxString &aKey, const wxString &aDefault)

References ALTIUM_COMPONENT_NONE, COMPONENT, componentdescription, currentpartid, displaymode, displaymodecount, isMirrored, libreference, location, orientation, partcount, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), and sourcelibraryname.

Member Data Documentation

◆ componentdescription

wxString ASCH_COMPONENT::componentdescription

Definition at line 113 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT(), and SCH_ALTIUM_PLUGIN::ParseComponent().

◆ currentpartid

int ASCH_COMPONENT::currentpartid

Definition at line 110 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT(), and SCH_ALTIUM_PLUGIN::ParseComponent().

◆ displaymode

int ASCH_COMPONENT::displaymode

Definition at line 121 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT().

◆ displaymodecount

int ASCH_COMPONENT::displaymodecount

Definition at line 120 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT().

◆ isMirrored

bool ASCH_COMPONENT::isMirrored

Definition at line 116 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT(), and SCH_ALTIUM_PLUGIN::ParseComponent().

◆ libreference

wxString ASCH_COMPONENT::libreference

Definition at line 111 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT(), and SCH_ALTIUM_PLUGIN::ParseComponent().

◆ location

wxPoint ASCH_COMPONENT::location

Definition at line 117 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT(), and SCH_ALTIUM_PLUGIN::ParseComponent().

◆ orientation

int ASCH_COMPONENT::orientation

Definition at line 115 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT(), and SCH_ALTIUM_PLUGIN::ParseComponent().

◆ partcount

int ASCH_COMPONENT::partcount

Definition at line 119 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT().

◆ sourcelibraryname

wxString ASCH_COMPONENT::sourcelibraryname

Definition at line 112 of file altium_parser_sch.h.

Referenced by ASCH_COMPONENT().


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