KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pin_comparison.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 <optional>
24#include <math/vector2d.h>
25#include <pin_type.h>
26#include <wx/string.h>
27
35
38{
39 int unit = 0;
40 int bodyStyle = 0;
41 bool isPrivate = false;
43 wxString number;
44 wxString name;
45 std::optional<int> length;
49 std::optional<bool> hidden;
50 std::optional<int> numberTextSize;
51 std::optional<int> nameTextSize;
52 std::map<wxString, PIN_ALTERNATE> alternates;
53
54 int Compare( const PIN_COMPARISON_DATA& aOther, int aCompareFlags ) const;
55 bool operator==( const PIN_COMPARISON_DATA& ) const = default;
56};
ELECTRICAL_PINTYPE
The symbol library pin object electrical types used in ERC tests.
Definition pin_type.h:32
@ PT_UNSPECIFIED
unknown electrical properties: creates always a warning when connected
Definition pin_type.h:41
PIN_ORIENTATION
The symbol library pin object orientations.
Definition pin_type.h:101
@ PIN_RIGHT
The pin extends rightwards from the connection point.
Definition pin_type.h:107
GRAPHIC_PINSHAPE
Definition pin_type.h:80
bool operator==(const PIN_ALTERNATE &) const =default
GRAPHIC_PINSHAPE m_Shape
ELECTRICAL_PINTYPE m_Type
Owned library-pin inputs; no parent, layout cache or schematic pointers.
std::map< wxString, PIN_ALTERNATE > alternates
ELECTRICAL_PINTYPE type
PIN_ORIENTATION orientation
std::optional< int > numberTextSize
std::optional< int > nameTextSize
std::optional< int > length
GRAPHIC_PINSHAPE shape
int Compare(const PIN_COMPARISON_DATA &aOther, int aCompareFlags) const
Definition sch_pin.cpp:2033
std::optional< bool > hidden
bool operator==(const PIN_COMPARISON_DATA &) const =default
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:683