24 #ifndef DRC_RULE_PROTO_H 25 #define DRC_RULE_PROTO_H 108 const wxString& aName = wxEmptyString ) :
153 wxString* aRuleName =
nullptr );
OPT< DRC_CONSTRAINT > FindConstraint(DRC_CONSTRAINT_T aType)
const DRC_CONSTRAINT * GetConstraint(const BOARD_ITEM *aItem, const BOARD_ITEM *bItem, int aConstraint, PCB_LAYER_ID aLayer, wxString *aRuleName=nullptr)
virtual bool AppliesTo(const BOARD_ITEM *a, const BOARD_ITEM *b=nullptr) const
DRC_RULE_CONDITION * m_Condition
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
MINOPTMAX< int > & Value()
DRC_RULE * GetParentRule() const
PCB_LAYER_ID
A quick note on layer IDs:
LSET is a set of PCB_LAYER_IDs.
std::vector< DRC_CONSTRAINT > m_Constraints
void SetParentRule(DRC_RULE *aParentRule)
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Board layer functions and definitions.
const MINOPTMAX< int > & GetValue() const
void AddConstraint(DRC_CONSTRAINT &aConstraint)
DRC_CONSTRAINT(DRC_CONSTRAINT_T aType=NULL_CONSTRAINT, const wxString &aName=wxEmptyString)