LibrePCB Developers Documentation
packagecheck.h
Go to the documentation of this file.
1/*
2 * LibrePCB - Professional EDA for everyone!
3 * Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
4 * https://librepcb.org/
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (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, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBREPCB_CORE_PACKAGECHECK_H
21#define LIBREPCB_CORE_PACKAGECHECK_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include "../libraryelementcheck.h"
27
28#include <QtCore>
29
30/*******************************************************************************
31 * Namespace / Forward Declarations
32 ******************************************************************************/
33namespace librepcb {
34
35class Package;
36
37/*******************************************************************************
38 * Class PackageCheck
39 ******************************************************************************/
40
45public:
46 // Constructors / Destructor
47 PackageCheck() = delete;
48 PackageCheck(const PackageCheck& other) = delete;
49 explicit PackageCheck(const Package& package) noexcept;
50 virtual ~PackageCheck() noexcept;
51
52 // General Methods
53 virtual RuleCheckMessageList runChecks() const override;
54
55 // Operator Overloadings
56 PackageCheck& operator=(const PackageCheck& rhs) = delete;
57
58protected: // Methods
59 void checkAssemblyType(MsgList& msgs) const;
60 void checkDuplicatePadNames(MsgList& msgs) const;
61 void checkMissingFootprint(MsgList& msgs) const;
62 void checkMissingTexts(MsgList& msgs) const;
63 void checkWrongTextLayers(MsgList& msgs) const;
64 void checkPackageOutlines(MsgList& msgs) const;
65 void checkCourtyards(MsgList& msgs) const;
66 void checkPadsPackagePadUuid(MsgList& msgs) const;
67 void checkPadsClearanceToPads(MsgList& msgs) const;
68 void checkPadsClearanceToLegend(MsgList& msgs) const;
69 void checkPadsAnnularRing(MsgList& msgs) const;
70 void checkPadsConnectionPoint(MsgList& msgs) const;
71 void checkCustomPadOutline(MsgList& msgs) const;
72 void checkStopMaskOnPads(MsgList& msgs) const;
73 void checkSolderPasteOnPads(MsgList& msgs) const;
74 void checkCopperClearanceOnPads(MsgList& msgs) const;
75 void checkPadFunctions(MsgList& msgs) const;
76 void checkHolesStopMask(MsgList& msgs) const;
77 void checkZones(MsgList& msgs) const;
78 void checkFootprintModels(MsgList& msgs) const;
79
80private: // Data
82};
83
84/*******************************************************************************
85 * End of File
86 ******************************************************************************/
87
88} // namespace librepcb
89
90#endif
RuleCheckMessageList MsgList
Definition: librarybaseelementcheck.h:60
The LibraryElementCheck class.
Definition: libraryelementcheck.h:44
The PackageCheck class.
Definition: packagecheck.h:44
void checkCustomPadOutline(MsgList &msgs) const
Definition: packagecheck.cpp:431
void checkPadsClearanceToLegend(MsgList &msgs) const
Definition: packagecheck.cpp:281
virtual RuleCheckMessageList runChecks() const override
Definition: packagecheck.cpp:52
const Package & mPackage
Definition: packagecheck.h:81
void checkPackageOutlines(MsgList &msgs) const
Definition: packagecheck.cpp:148
void checkStopMaskOnPads(MsgList &msgs) const
Definition: packagecheck.cpp:454
void checkDuplicatePadNames(MsgList &msgs) const
Definition: packagecheck.cpp:96
void checkHolesStopMask(MsgList &msgs) const
Definition: packagecheck.cpp:564
void checkPadsClearanceToPads(MsgList &msgs) const
Definition: packagecheck.cpp:211
PackageCheck(const PackageCheck &other)=delete
void checkSolderPasteOnPads(MsgList &msgs) const
Definition: packagecheck.cpp:476
void checkMissingTexts(MsgList &msgs) const
Definition: packagecheck.cpp:113
void checkCourtyards(MsgList &msgs) const
Definition: packagecheck.cpp:172
void checkCopperClearanceOnPads(MsgList &msgs) const
Definition: packagecheck.cpp:502
void checkZones(MsgList &msgs) const
Definition: packagecheck.cpp:578
void checkPadFunctions(MsgList &msgs) const
Definition: packagecheck.cpp:525
void checkPadsAnnularRing(MsgList &msgs) const
Definition: packagecheck.cpp:335
virtual ~PackageCheck() noexcept
Definition: packagecheck.cpp:45
void checkFootprintModels(MsgList &msgs) const
Definition: packagecheck.cpp:595
void checkMissingFootprint(MsgList &msgs) const
Definition: packagecheck.cpp:107
void checkPadsConnectionPoint(MsgList &msgs) const
Definition: packagecheck.cpp:410
void checkWrongTextLayers(MsgList &msgs) const
Definition: packagecheck.cpp:130
void checkPadsPackagePadUuid(MsgList &msgs) const
Definition: packagecheck.cpp:196
void checkAssemblyType(MsgList &msgs) const
Definition: packagecheck.cpp:81
The Package class represents a package of a component (including footprint and 3D model)
Definition: package.h:59
Definition: occmodel.cpp:77
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition: rulecheckmessage.h:104