KiCad PCB EDA Suite
ASCH_NO_ERC Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

wxPoint location
 
bool isActive
 
bool supressAll
 

Detailed Description

Definition at line 538 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_NO_ERC()

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

Definition at line 493 of file altium_parser_sch.cpp.

494 {
495  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::NO_ERC );
496 
497  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
498  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
499 
500  isActive = ALTIUM_PARSER::ReadBool( aProps, "ISACTIVE", true );
501  supressAll = ALTIUM_PARSER::ReadInt( aProps, "SUPPRESSALL", true );
502 }
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)

References isActive, location, NO_ERC, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadRecord(), and supressAll.

Member Data Documentation

◆ isActive

bool ASCH_NO_ERC::isActive

Definition at line 542 of file altium_parser_sch.h.

Referenced by ASCH_NO_ERC(), and SCH_ALTIUM_PLUGIN::ParseNoERC().

◆ location

wxPoint ASCH_NO_ERC::location

Definition at line 540 of file altium_parser_sch.h.

Referenced by ASCH_NO_ERC(), and SCH_ALTIUM_PLUGIN::ParseNoERC().

◆ supressAll

bool ASCH_NO_ERC::supressAll

Definition at line 543 of file altium_parser_sch.h.

Referenced by ASCH_NO_ERC().


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