|
KiCad PCB EDA Suite
|
#include "drc_rule_editor_utils.h"#include <reporter.h>#include <component_classes/component_class_assignment_rule.h>#include <drc/drc_rule_parser.h>#include <drc/drc_rule.h>#include <drc/drc_rule_condition.h>#include "drc_re_validator_numeric_ctrl.h"#include "drc_re_validator_min_max_ctrl.h"#include "drc_re_validator_min_preferred_max_ctrl.h"#include "drc_re_validator_checkbox_list.h"#include "drc_re_validator_combo_ctrl.h"#include "drc_re_custom_rule_constraint_data.h"#include "drc_re_via_style_constraint_data.h"#include "drc_re_routing_width_constraint_data.h"#include "drc_re_numeric_input_constraint_data.h"#include "drc_re_bool_input_constraint_data.h"#include <board.h>#include <wx/ffile.h>#include <wx/regex.h>#include <unordered_map>Go to the source code of this file.
Typedefs | |
| using | CODE_MAP = std::unordered_map<DRC_RULE_EDITOR_CONSTRAINT_NAME, const char*> |
| using | REVERSE_CODE_MAP = std::unordered_map<wxString, DRC_RULE_EDITOR_CONSTRAINT_NAME, wxStringHash, wxStringEqual> |
Functions | |
| static std::vector< DRC_RULE_EDITOR_UTILS::RuleConverter > & | GetRuleConverters () |
| static wxString | GetConstraintCodeFromType (DRC_CONSTRAINT_T aType) |
| static void | RegisterDefaultConverters () |
Variables | |
| static const CODE_MAP | sCodeMap |
| static const REVERSE_CODE_MAP | sCodeReverse |
| using CODE_MAP = std::unordered_map<DRC_RULE_EDITOR_CONSTRAINT_NAME, const char*> |
Definition at line 45 of file drc_rule_editor_utils.cpp.
| using REVERSE_CODE_MAP = std::unordered_map<wxString, DRC_RULE_EDITOR_CONSTRAINT_NAME, wxStringHash, wxStringEqual> |
Definition at line 46 of file drc_rule_editor_utils.cpp.
|
static |
Definition at line 105 of file drc_rule_editor_utils.cpp.
References ANNULAR_WIDTH_CONSTRAINT, ASSERTION_CONSTRAINT, BRIDGED_MASK_CONSTRAINT, CLEARANCE_CONSTRAINT, CONNECTION_WIDTH_CONSTRAINT, COURTYARD_CLEARANCE_CONSTRAINT, DIFF_PAIR_GAP_CONSTRAINT, DISALLOW_CONSTRAINT, EDGE_CLEARANCE_CONSTRAINT, HOLE_CLEARANCE_CONSTRAINT, HOLE_SIZE_CONSTRAINT, HOLE_TO_HOLE_CONSTRAINT, LENGTH_CONSTRAINT, MAX_UNCOUPLED_CONSTRAINT, MIN_RESOLVED_SPOKES_CONSTRAINT, PHYSICAL_CLEARANCE_CONSTRAINT, PHYSICAL_HOLE_CLEARANCE_CONSTRAINT, SILK_CLEARANCE_CONSTRAINT, SKEW_CONSTRAINT, SOLDER_MASK_EXPANSION_CONSTRAINT, SOLDER_PASTE_ABS_MARGIN_CONSTRAINT, SOLDER_PASTE_REL_MARGIN_CONSTRAINT, TEXT_HEIGHT_CONSTRAINT, TEXT_THICKNESS_CONSTRAINT, THERMAL_RELIEF_GAP_CONSTRAINT, THERMAL_SPOKE_WIDTH_CONSTRAINT, TRACK_ANGLE_CONSTRAINT, TRACK_SEGMENT_LENGTH_CONSTRAINT, TRACK_WIDTH_CONSTRAINT, VIA_COUNT_CONSTRAINT, VIA_DANGLING_CONSTRAINT, VIA_DIAMETER_CONSTRAINT, and ZONE_CONNECTION_CONSTRAINT.
Referenced by RegisterDefaultConverters().
|
static |
Definition at line 94 of file drc_rule_editor_utils.cpp.
Referenced by DRC_RULE_EDITOR_UTILS::ParseRules(), and DRC_RULE_EDITOR_UTILS::RegisterRuleConverter().
|
static |
Definition at line 146 of file drc_rule_editor_utils.cpp.
References GetConstraintCodeFromType(), HOLE_SIZE_CONSTRAINT, DRC_RULE_EDITOR_UTILS::IsBoolInputType(), DRC_RULE_EDITOR_UTILS::IsNumericInputType(), DRC_RULE_EDITOR_UTILS::RegisterRuleConverter(), sCodeReverse, and VIA_DIAMETER_CONSTRAINT.
Referenced by DRC_RULE_EDITOR_UTILS::ParseRules().
|
static |
Definition at line 48 of file drc_rule_editor_utils.cpp.
Referenced by DRC_RULE_EDITOR_UTILS::GetConstraintCode().
|
static |
Definition at line 86 of file drc_rule_editor_utils.cpp.
Referenced by DRC_RULE_EDITOR_UTILS::GetConstraintTypeFromCode(), and RegisterDefaultConverters().