| 
    KiCad PCB EDA Suite
    
   | 
 
#include <component_class_settings.h>
Public Types | |
| enum class | CONDITION_TYPE {  REFERENCE , FOOTPRINT , SIDE , ROTATION , FOOTPRINT_FIELD , CUSTOM , SHEET_NAME }  | 
| A condition match type.  More... | |
| enum class | CONDITIONS_OPERATOR { ALL , ANY } | 
| Whether conditions are applied with OR or AND logic.  More... | |
Public Member Functions | |
| void | SetCondition (const CONDITION_TYPE aCondition, const wxString &aPrimaryData, const wxString &aSecondaryData) | 
| Sets the given condition type with the assocated match data.   | |
| const std::unordered_map< CONDITION_TYPE, std::pair< wxString, wxString > > & | GetConditions () const | 
| Gets all conditions.   | |
| void | SetComponentClass (const wxString &aComponentClass) | 
| Sets the resulting component class for matching footprints.   | |
| const wxString & | GetComponentClass () const | 
| Gets the resulting component class for matching footprints.   | |
| void | SetConditionsOperation (const CONDITIONS_OPERATOR aOperator) | 
| Sets the boolean operation in use for all conditions.   | |
| CONDITIONS_OPERATOR | GetConditionsOperator () const | 
| Gets the boolean operation in use for all conditions.   | |
| wxString | GetAssignmentInDRCLanguage () const | 
| Returns the DRC rules language for this component class assignment.   | |
Static Public Member Functions | |
| static wxString | GetConditionName (const CONDITION_TYPE aCondition) | 
| Maps a CONDITION_TYPE to a descriptive string.   | |
| static CONDITION_TYPE | GetConditionType (const wxString &aCondition) | 
| Maps a descriptive string to a CONDITION_TYPE.   | |
Protected Attributes | |
| wxString | m_componentClass | 
| The name of the component class for this assignment rule.   | |
| std::unordered_map< CONDITION_TYPE, std::pair< wxString, wxString > > | m_conditions | 
| Map of condition types to primary and secondary data fields for the condition.   | |
| CONDITIONS_OPERATOR | m_conditionsOperator { CONDITIONS_OPERATOR::ALL } | 
| Whether conditions are applied with AND or OR logic Defaults to ALL.   | |
Definition at line 29 of file component_class_settings.h.
      
  | 
  strong | 
A condition match type.
| Enumerator | |
|---|---|
| REFERENCE | |
| FOOTPRINT | |
| SIDE | |
| ROTATION | |
| FOOTPRINT_FIELD | |
| CUSTOM | |
| SHEET_NAME | |
Definition at line 33 of file component_class_settings.h.
      
  | 
  strong | 
Whether conditions are applied with OR or AND logic.
| Enumerator | |
|---|---|
| ALL | |
| ANY | |
Definition at line 45 of file component_class_settings.h.
| wxString COMPONENT_CLASS_ASSIGNMENT_DATA::GetAssignmentInDRCLanguage | ( | ) | const | 
Returns the DRC rules language for this component class assignment.
Definition at line 234 of file component_class_settings.cpp.
References ALL, CUSTOM, dummy, FOOTPRINT, FOOTPRINT_FIELD, m_componentClass, m_conditions, m_conditionsOperator, REFERENCE, ROTATION, SHEET_NAME, and SIDE.
Referenced by COMPONENT_CLASS_MANAGER::CompileAssignmentRule().
      
  | 
  inline | 
Gets the resulting component class for matching footprints.
Definition at line 71 of file component_class_settings.h.
References m_componentClass.
Referenced by COMPONENT_CLASS_SETTINGS::saveAssignment().
      
  | 
  static | 
Maps a CONDITION_TYPE to a descriptive string.
Definition at line 191 of file component_class_settings.cpp.
References CUSTOM, FOOTPRINT, FOOTPRINT_FIELD, REFERENCE, ROTATION, SHEET_NAME, and SIDE.
Referenced by COMPONENT_CLASS_SETTINGS::saveAssignment().
      
  | 
  inline | 
Gets all conditions.
Definition at line 59 of file component_class_settings.h.
References m_conditions.
Referenced by COMPONENT_CLASS_SETTINGS::saveAssignment().
      
  | 
  inline | 
Gets the boolean operation in use for all conditions.
Definition at line 80 of file component_class_settings.h.
References m_conditionsOperator.
Referenced by COMPONENT_CLASS_SETTINGS::saveAssignment().
      
  | 
  static | 
Maps a descriptive string to a CONDITION_TYPE.
Definition at line 211 of file component_class_settings.cpp.
References CUSTOM, FOOTPRINT, FOOTPRINT_FIELD, REFERENCE, ROTATION, SHEET_NAME, and SIDE.
Referenced by COMPONENT_CLASS_SETTINGS::loadAssignment().
      
  | 
  inline | 
Sets the resulting component class for matching footprints.
Definition at line 65 of file component_class_settings.h.
References m_componentClass.
Referenced by PANEL_COMPONENT_CLASS_ASSIGNMENT::GenerateAssignmentData(), COMPONENT_CLASS_SETTINGS::loadAssignment(), and COMPONENT_CLASS_MANAGER::SyncDynamicComponentClassAssignments().
      
  | 
  inline | 
Sets the given condition type with the assocated match data.
Definition at line 52 of file component_class_settings.h.
References m_conditions.
Referenced by PANEL_COMPONENT_CLASS_ASSIGNMENT::GenerateAssignmentData(), COMPONENT_CLASS_SETTINGS::loadAssignment(), and COMPONENT_CLASS_MANAGER::SyncDynamicComponentClassAssignments().
      
  | 
  inline | 
Sets the boolean operation in use for all conditions.
Definition at line 74 of file component_class_settings.h.
References m_conditionsOperator.
Referenced by PANEL_COMPONENT_CLASS_ASSIGNMENT::GenerateAssignmentData(), and COMPONENT_CLASS_SETTINGS::loadAssignment().
      
  | 
  protected | 
The name of the component class for this assignment rule.
Definition at line 93 of file component_class_settings.h.
Referenced by GetAssignmentInDRCLanguage(), GetComponentClass(), and SetComponentClass().
      
  | 
  protected | 
Map of condition types to primary and secondary data fields for the condition.
Definition at line 96 of file component_class_settings.h.
Referenced by GetAssignmentInDRCLanguage(), GetConditions(), and SetCondition().
      
  | 
  protected | 
Whether conditions are applied with AND or OR logic Defaults to ALL.
Definition at line 100 of file component_class_settings.h.
Referenced by GetAssignmentInDRCLanguage(), GetConditionsOperator(), and SetConditionsOperation().