KiCad PCB EDA Suite
erc_settings.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) 2018 CERN
5  * @author Jon Evans <jon@craftyjon.com>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef _ERC_SETTINGS_H
22 #define _ERC_SETTINGS_H
23 
31 {
32 public:
33  void LoadDefaults()
34  {
35  write_erc_file = false;
36  check_similar_labels = true;
42  }
43 
44  bool operator==( const ERC_SETTINGS& other ) const
45  {
46  return ( other.write_erc_file == write_erc_file &&
53  }
54 
55  bool operator!=( const ERC_SETTINGS& other ) const
56  {
57  return !( other == *this );
58  }
59 
62 
65 
68 
71 
74 
77 
80 };
81 
82 #endif
bool check_unique_global_labels
If true, check to ensure that each global label apperas more than once.
Definition: erc_settings.h:67
bool write_erc_file
If true, write ERC results to a file.
Definition: erc_settings.h:61
bool check_bus_to_bus_conflicts
If true, check that bus-to-bus connections share at least one member.
Definition: erc_settings.h:76
bool operator==(const ERC_SETTINGS &other) const
Definition: erc_settings.h:44
bool check_bus_to_net_conflicts
If true, check that bus wires don't graphically connect to net objects (or vice versa)
Definition: erc_settings.h:79
bool check_bus_driver_conflicts
If true, check that buses don't have conflicting drivers.
Definition: erc_settings.h:70
Container for ERC settings.
Definition: erc_settings.h:30
void LoadDefaults()
Definition: erc_settings.h:33
bool check_bus_entry_conflicts
If true, check that wires connecting to buses actually exist in the bus.
Definition: erc_settings.h:73
bool check_similar_labels
If true, check each sheet for labels that differ only by letter case.
Definition: erc_settings.h:64
bool operator!=(const ERC_SETTINGS &other) const
Definition: erc_settings.h:55