KiCad PCB EDA Suite
Loading...
Searching...
No Matches
lib_symbol_attributes.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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * 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, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include <map>
23#include <vector>
24#include <pin_map.h>
25#include <wx/arrstr.h>
26#include <wx/string.h>
27
28/* values for member .m_options */
30{
31 ENTRY_NORMAL, // Libentry is a standard symbol (real or alias)
32 ENTRY_GLOBAL_POWER, // Libentry is a power symbol
33 ENTRY_LOCAL_POWER // Libentry is a local power symbol
34};
35
36// Raw symbol attributes consulted by library parity and duplicate-pin suppression.
38{
40 int unitCount = 1;
41 wxArrayString footprintFilters;
43 std::vector<ASSOCIATED_FOOTPRINT> associatedFootprints;
44 wxString keywords;
46 bool showPinNames = false;
47 bool showPinNumbers = false;
48 bool excludedFromSim = false;
49 bool excludedFromBOM = false;
50 bool excludedFromBoard = false;
52 bool dnp = false;
53 bool unitsLocked = false;
54 std::map<int, wxString> unitDisplayNames;
55 std::vector<wxString> bodyStyleNames;
57
58 bool Matches( const LIB_SYMBOL_ATTRIBUTES& aOther, int aCompareFlags ) const;
59 bool operator==( const LIB_SYMBOL_ATTRIBUTES& ) const = default;
60};
A symbol-owned ordered set of named pin maps.
Definition pin_map.h:124
@ ENTRY_LOCAL_POWER
@ ENTRY_GLOBAL_POWER
bool operator==(const LIB_SYMBOL_ATTRIBUTES &) const =default
bool Matches(const LIB_SYMBOL_ATTRIBUTES &aOther, int aCompareFlags) const
std::map< int, wxString > unitDisplayNames
std::vector< ASSOCIATED_FOOTPRINT > associatedFootprints
std::vector< wxString > bodyStyleNames