| 
    KiCad PCB EDA Suite
    
   | 
 
Class which represents a component class assignment rule. More...
#include <component_class_assignment_rule.h>
Public Member Functions | |
| COMPONENT_CLASS_ASSIGNMENT_RULE (const wxString &aComponentClass, std::shared_ptr< DRC_RULE_CONDITION > &&aCondition) | |
| Construct a component class assignment rule.   | |
| wxString | GetComponentClass () const | 
| The component class to assign to matching footprints.   | |
| void | SetComponentClass (const wxString &aComponentClass) | 
| bool | Matches (const FOOTPRINT *aFootprint) const | 
| Tests whether this rules matches the given footprint.   | |
Protected Attributes | |
| wxString | m_componentClass | 
| The component class to assign to matching footprints.   | |
| std::shared_ptr< DRC_RULE_CONDITION > | m_condition | 
| The DRC condition which specifies footprint matches for this component class.   | |
Class which represents a component class assignment rule.
These are used to dynamically assign component classes based on FOOTPRINT parameters which are exposed through the DRC language.
Definition at line 35 of file component_class_assignment_rule.h.
      
  | 
  explicit | 
Construct a component class assignment rule.
Definition at line 25 of file component_class_assignment_rule.cpp.
References m_componentClass, m_condition, and move.
      
  | 
  inline | 
The component class to assign to matching footprints.
Definition at line 43 of file component_class_assignment_rule.h.
References m_componentClass.
| bool COMPONENT_CLASS_ASSIGNMENT_RULE::Matches | ( | const FOOTPRINT * | aFootprint | ) | const | 
Tests whether this rules matches the given footprint.
Definition at line 32 of file component_class_assignment_rule.cpp.
References FOOTPRINT::GetSide(), and m_condition.
      
  | 
  inline | 
Definition at line 44 of file component_class_assignment_rule.h.
References m_componentClass.
      
  | 
  protected | 
The component class to assign to matching footprints.
Definition at line 54 of file component_class_assignment_rule.h.
Referenced by COMPONENT_CLASS_ASSIGNMENT_RULE(), GetComponentClass(), and SetComponentClass().
      
  | 
  protected | 
The DRC condition which specifies footprint matches for this component class.
Definition at line 57 of file component_class_assignment_rule.h.
Referenced by COMPONENT_CLASS_ASSIGNMENT_RULE(), and Matches().