KiCad PCB EDA Suite
ASCH_SYMBOL Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ ASCH_SYMBOL()

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

Definition at line 106 of file altium_parser_sch.cpp.

107 {
108  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::COMPONENT );
109 
110  currentpartid = ALTIUM_PARSER::ReadInt( aProps, "CURRENTPARTID", ALTIUM_COMPONENT_NONE );
111  libreference = ALTIUM_PARSER::ReadString( aProps, "LIBREFERENCE", "" );
112  sourcelibraryname = ALTIUM_PARSER::ReadString( aProps, "SOURCELIBRARYNAME", "" );
113  componentdescription = ALTIUM_PARSER::ReadString( aProps, "COMPONENTDESCRIPTION", "" );
114 
115  orientation = ALTIUM_PARSER::ReadInt( aProps, "ORIENTATION", 0 );
116  isMirrored = ALTIUM_PARSER::ReadBool( aProps, "ISMIRRORED", false );
117  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
118  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
119 
120  partcount = ALTIUM_PARSER::ReadInt( aProps, "PARTCOUNT", 0 );
121  displaymodecount = ALTIUM_PARSER::ReadInt( aProps, "DISPLAYMODECOUNT", 0 );
122  displaymode = ALTIUM_PARSER::ReadInt( aProps, "DISPLAYMODE", 0 );
123 }
wxString sourcelibraryname
wxString libreference
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
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)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
const int ALTIUM_COMPONENT_NONE
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
wxString componentdescription

References ALTIUM_COMPONENT_NONE, COMPONENT, componentdescription, currentpartid, displaymode, displaymodecount, isMirrored, libreference, location, orientation, partcount, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadRecord(), ALTIUM_PARSER::ReadString(), and sourcelibraryname.

Member Data Documentation

◆ componentdescription

wxString ASCH_SYMBOL::componentdescription

Definition at line 115 of file altium_parser_sch.h.

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

◆ currentpartid

int ASCH_SYMBOL::currentpartid

Definition at line 112 of file altium_parser_sch.h.

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

◆ displaymode

int ASCH_SYMBOL::displaymode

Definition at line 123 of file altium_parser_sch.h.

Referenced by ASCH_SYMBOL().

◆ displaymodecount

int ASCH_SYMBOL::displaymodecount

Definition at line 122 of file altium_parser_sch.h.

Referenced by ASCH_SYMBOL().

◆ isMirrored

bool ASCH_SYMBOL::isMirrored

Definition at line 118 of file altium_parser_sch.h.

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

◆ libreference

wxString ASCH_SYMBOL::libreference

Definition at line 113 of file altium_parser_sch.h.

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

◆ location

wxPoint ASCH_SYMBOL::location

Definition at line 119 of file altium_parser_sch.h.

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

◆ orientation

int ASCH_SYMBOL::orientation

Definition at line 117 of file altium_parser_sch.h.

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

◆ partcount

int ASCH_SYMBOL::partcount

Definition at line 121 of file altium_parser_sch.h.

Referenced by ASCH_SYMBOL().

◆ sourcelibraryname

wxString ASCH_SYMBOL::sourcelibraryname

Definition at line 114 of file altium_parser_sch.h.

Referenced by ASCH_SYMBOL().


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