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
 
VECTOR2I location
 
int partcount
 
int displaymodecount
 
int displaymode
 

Detailed Description

Definition at line 133 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 123 of file altium_parser_sch.cpp.

124{
125 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::COMPONENT );
126
127 currentpartid = ALTIUM_PARSER::ReadInt( aProps, "CURRENTPARTID", ALTIUM_COMPONENT_NONE );
128 libreference = ALTIUM_PARSER::ReadString( aProps, "LIBREFERENCE", "" );
129 sourcelibraryname = ALTIUM_PARSER::ReadString( aProps, "SOURCELIBRARYNAME", "" );
130 componentdescription = ALTIUM_PARSER::ReadString( aProps, "COMPONENTDESCRIPTION", "" );
131
132 orientation = ALTIUM_PARSER::ReadInt( aProps, "ORIENTATION", 0 );
133 isMirrored = ALTIUM_PARSER::ReadBool( aProps, "ISMIRRORED", false );
134 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
135 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
136
137 partcount = ALTIUM_PARSER::ReadInt( aProps, "PARTCOUNT", 0 );
138 displaymodecount = ALTIUM_PARSER::ReadInt( aProps, "DISPLAYMODECOUNT", 0 );
139 displaymode = ALTIUM_PARSER::ReadInt( aProps, "DISPLAYMODE", 0 );
140}
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 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)
wxString componentdescription
wxString libreference
wxString sourcelibraryname
VECTOR2< int > VECTOR2I
Definition: vector2d.h:618

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

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

◆ currentpartid

int ASCH_SYMBOL::currentpartid

Definition at line 135 of file altium_parser_sch.h.

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

◆ displaymode

int ASCH_SYMBOL::displaymode

Definition at line 146 of file altium_parser_sch.h.

Referenced by ASCH_SYMBOL().

◆ displaymodecount

int ASCH_SYMBOL::displaymodecount

Definition at line 145 of file altium_parser_sch.h.

Referenced by ASCH_SYMBOL().

◆ isMirrored

bool ASCH_SYMBOL::isMirrored

Definition at line 141 of file altium_parser_sch.h.

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

◆ libreference

wxString ASCH_SYMBOL::libreference

Definition at line 136 of file altium_parser_sch.h.

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

◆ location

VECTOR2I ASCH_SYMBOL::location

Definition at line 142 of file altium_parser_sch.h.

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

◆ orientation

int ASCH_SYMBOL::orientation

Definition at line 140 of file altium_parser_sch.h.

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

◆ partcount

int ASCH_SYMBOL::partcount

Definition at line 144 of file altium_parser_sch.h.

Referenced by ASCH_SYMBOL().

◆ sourcelibraryname

wxString ASCH_SYMBOL::sourcelibraryname

Definition at line 137 of file altium_parser_sch.h.

Referenced by ASCH_SYMBOL().


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