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
 
VECTOR2I location
 
bool isHidden
 

Detailed Description

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

826{
827 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::FILE_NAME );
828
829 ownerindex = ReadOwnerIndex( aProps );
830 ownerpartid = ReadOwnerPartId( aProps );
831
832 text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
833
834 orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
836
837 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
838 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
839
840 isHidden = ALTIUM_PARSER::ReadBool( aProps, "ISHIDDEN", false );
841}
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
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)
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
ASCH_RECORD_ORIENTATION orientation
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

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

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

◆ location

VECTOR2I ASCH_FILE_NAME::location

Definition at line 807 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 806 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 801 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 802 of file altium_parser_sch.h.

Referenced by ASCH_FILE_NAME().

◆ text

wxString ASCH_FILE_NAME::text

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