KiCad PCB EDA Suite
ASCH_FILE_NAME Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
wxString text
 
ASCH_RECORD_ORIENTATION orientation
 
wxPoint location
 
bool isHidden
 

Detailed Description

Definition at line 646 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_FILE_NAME()

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

Definition at line 677 of file altium_parser_sch.cpp.

678 {
679  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::FILE_NAME );
680 
681  ownerindex =
682  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
683  ownerpartid = ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", 0 );
684 
685  text = ALTIUM_PARSER::PropertiesReadString( aProperties, "TEXT", "" );
686 
687  orientation = PropertiesReadEnum<ASCH_RECORD_ORIENTATION>(
688  aProperties, "ORIENTATION", 0, 3, ASCH_RECORD_ORIENTATION::RIGHTWARDS );
689 
690  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
691  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
692 
693  isHidden = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ISHIDDEN", false );
694 }
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)
ASCH_RECORD_ORIENTATION orientation
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
const int ALTIUM_COMPONENT_NONE
static wxString PropertiesReadString(const std::map< wxString, wxString > &aProperties, const wxString &aKey, const wxString &aDefault)

References ALTIUM_COMPONENT_NONE, FILE_NAME, isHidden, location, orientation, ownerindex, ownerpartid, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), RIGHTWARDS, and text.

Member Data Documentation

◆ isHidden

bool ASCH_FILE_NAME::isHidden

Definition at line 656 of file altium_parser_sch.h.

Referenced by ASCH_FILE_NAME(), and SCH_ALTIUM_PLUGIN::ParseFileName().

◆ location

wxPoint ASCH_FILE_NAME::location

Definition at line 654 of file altium_parser_sch.h.

Referenced by ASCH_FILE_NAME(), and SCH_ALTIUM_PLUGIN::ParseFileName().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_FILE_NAME::orientation

Definition at line 653 of file altium_parser_sch.h.

Referenced by ASCH_FILE_NAME(), and SCH_ALTIUM_PLUGIN::ParseFileName().

◆ ownerindex

int ASCH_FILE_NAME::ownerindex

Definition at line 648 of file altium_parser_sch.h.

Referenced by ASCH_FILE_NAME(), and SCH_ALTIUM_PLUGIN::ParseFileName().

◆ ownerpartid

int ASCH_FILE_NAME::ownerpartid

Definition at line 649 of file altium_parser_sch.h.

Referenced by ASCH_FILE_NAME().

◆ text

wxString ASCH_FILE_NAME::text

Definition at line 651 of file altium_parser_sch.h.

Referenced by ASCH_FILE_NAME(), and SCH_ALTIUM_PLUGIN::ParseFileName().


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