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 > &aProps)
 

Public Attributes

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

Detailed Description

Definition at line 685 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_FILE_NAME()

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

Definition at line 665 of file altium_parser_sch.cpp.

666 {
667  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::FILE_NAME );
668 
669  ownerindex = ReadOwnerIndex( aProps );
670  ownerpartid = ReadOwnerPartId( aProps );
671 
672  text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
673 
674  orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
676 
677  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
678  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
679 
680  isHidden = ALTIUM_PARSER::ReadBool( aProps, "ISHIDDEN", false );
681 }
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
ASCH_RECORD_ORIENTATION orientation
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)
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)

References FILE_NAME, isHidden, location, orientation, ownerindex, ownerpartid, ALTIUM_PARSER::ReadBool(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), RIGHTWARDS, and text.

Member Data Documentation

◆ isHidden

bool ASCH_FILE_NAME::isHidden

Definition at line 695 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 693 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 692 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 687 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 688 of file altium_parser_sch.h.

Referenced by ASCH_FILE_NAME().

◆ text

wxString ASCH_FILE_NAME::text

Definition at line 690 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: