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

Public Attributes

wxPoint location
 
bool isActive
 
bool supressAll
 

Detailed Description

Definition at line 499 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_NO_ERC()

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

Definition at line 478 of file altium_parser_sch.cpp.

479 {
480  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::NO_ERC );
481 
482  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
483  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
484 
485  isActive = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ISACTIVE", true );
486  supressAll = ALTIUM_PARSER::PropertiesReadInt( aProperties, "SUPPRESSALL", true );
487 }
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)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)

References isActive, location, NO_ERC, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), and supressAll.

Member Data Documentation

◆ isActive

bool ASCH_NO_ERC::isActive

Definition at line 503 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 501 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 504 of file altium_parser_sch.h.

Referenced by ASCH_NO_ERC().


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