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

VECTOR2I location
 
bool isActive
 
bool suppressAll
 

Detailed Description

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

650{
651 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::NO_ERC );
652
653 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
654 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
655
656 isActive = ALTIUM_PARSER::ReadBool( aProps, "ISACTIVE", true );
657 suppressAll = ALTIUM_PARSER::ReadInt( aProps, "SUPPRESSALL", true );
658}
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
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)
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

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

Member Data Documentation

◆ isActive

bool ASCH_NO_ERC::isActive

Definition at line 654 of file altium_parser_sch.h.

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

◆ location

VECTOR2I ASCH_NO_ERC::location

Definition at line 652 of file altium_parser_sch.h.

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

◆ suppressAll

bool ASCH_NO_ERC::suppressAll

Definition at line 655 of file altium_parser_sch.h.

Referenced by ASCH_NO_ERC().


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