KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drc_rule_editor_enums.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2024 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#ifndef DRC_RULE_EDITOR_ENUMS_H_
25#define DRC_RULE_EDITOR_ENUMS_H_
26
27#include <wx/string.h>
28#include <string>
29#include <vector>
30
31
37{
38 bool isValid = true;
39 std::vector<std::string> errors;
40
41 void AddError( const std::string& aError )
42 {
43 isValid = false;
44 errors.push_back( aError );
45 }
46
47 void Merge( const VALIDATION_RESULT& aOther )
48 {
49 if( !aOther.isValid )
50 {
51 isValid = false;
52 errors.insert( errors.end(), aOther.errors.begin(), aOther.errors.end() );
53 }
54 }
55};
56
57
59{
60 wxString ruleName;
61 wxString comment;
63 wxString layerClause;
65};
66
67
76
118
119#endif // DRC_RULE_EDITOR_ENUMS_H_
SIM_MODEL::PARAM::CATEGORY CATEGORY
DRC_RULE_EDITOR_CONSTRAINT_NAME
@ MINIMUM_SOLDERMASK_SILVER
@ ALLOWED_ORIENTATION
@ MINIMUM_ITEM_CLEARANCE
@ SILK_TO_SILK_CLEARANCE
@ MINIMUM_TRACK_WIDTH
@ ROUTING_DIFF_PAIR
@ HOLE_TO_HOLE_CLEARANCE
@ SOLDERPASTE_EXPANSION
@ SILK_TO_SOLDERMASK_CLEARANCE
@ MINIMUM_ANGULAR_RING
@ MINIMUM_UVIA_HOLE
@ BOARD_OUTLINE_CLEARANCE
@ COURTYARD_CLEARANCE
@ MINIMUM_CONNECTION_WIDTH
@ SOLDERMASK_EXPANSION
@ MAXIMUM_VIA_COUNT
@ MINIMUM_ANNULAR_WIDTH
@ PHYSICAL_CLEARANCE
@ MINIMUM_THROUGH_HOLE
@ CREEPAGE_DISTANCE
@ ABSOLUTE_LENGTH
@ MINIMUM_CLEARANCE
@ MINIMUM_THERMAL_RELIEF_SPOKE_COUNT
@ BASIC_CLEARANCE
@ PERMITTED_LAYERS
@ MINIMUM_TEXT_HEIGHT_AND_THICKNESS
@ COPPER_TO_HOLE_CLEARANCE
@ MAXIMUM_ALLOWED_DEVIATION
@ MINIMUM_UVIA_DIAMETER
@ HOLE_TO_HOLE_DISTANCE
@ MATCHED_LENGTH_DIFF_PAIR
@ COPPER_TO_EDGE_CLEARANCE
@ MINIMUM_VIA_DIAMETER
DRC_RULE_EDITOR_ITEM_TYPE
Result of a validation operation.
void AddError(const std::string &aError)
std::vector< std::string > errors
void Merge(const VALIDATION_RESULT &aOther)