KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_footprint_field_reconciler.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
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, see <https://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef SCH_FOOTPRINT_FIELD_RECONCILER_H
21
#define SCH_FOOTPRINT_FIELD_RECONCILER_H
22
23
#include <set>
24
#include <vector>
25
#include <wx/string.h>
26
27
class
SCHEMATIC
;
28
class
REPORTER
;
29
30
struct
SCH_FP_FIELD_RECONCILE_RESULT
31
{
32
int
m_relinkedToCache
= 0;
33
int
m_keptSource
= 0;
34
};
35
42
class
SCH_FOOTPRINT_FIELD_RECONCILER
43
{
44
public
:
45
SCH_FOOTPRINT_FIELD_RECONCILER
(
const
wxString& aCacheNickname,
46
const
std::vector<wxString>& aSourceLibNicknames,
47
REPORTER
* aReporter =
nullptr
);
48
49
SCH_FP_FIELD_RECONCILE_RESULT
Reconcile
(
SCHEMATIC
& aSchematic );
50
51
private
:
52
wxString
m_cacheNickname
;
53
std::set<wxString>
m_sourceLibs
;
54
REPORTER
*
m_reporter
;
55
};
56
57
#endif
// SCH_FOOTPRINT_FIELD_RECONCILER_H
REPORTER
A pure virtual class used to derive REPORTER objects from.
Definition
reporter.h:72
SCHEMATIC
Holds all the data relating to one schematic.
Definition
schematic.h:90
SCH_FOOTPRINT_FIELD_RECONCILER::m_reporter
REPORTER * m_reporter
Definition
sch_footprint_field_reconciler.h:54
SCH_FOOTPRINT_FIELD_RECONCILER::SCH_FOOTPRINT_FIELD_RECONCILER
SCH_FOOTPRINT_FIELD_RECONCILER(const wxString &aCacheNickname, const std::vector< wxString > &aSourceLibNicknames, REPORTER *aReporter=nullptr)
Definition
sch_footprint_field_reconciler.cpp:29
SCH_FOOTPRINT_FIELD_RECONCILER::Reconcile
SCH_FP_FIELD_RECONCILE_RESULT Reconcile(SCHEMATIC &aSchematic)
Definition
sch_footprint_field_reconciler.cpp:39
SCH_FOOTPRINT_FIELD_RECONCILER::m_sourceLibs
std::set< wxString > m_sourceLibs
Definition
sch_footprint_field_reconciler.h:53
SCH_FOOTPRINT_FIELD_RECONCILER::m_cacheNickname
wxString m_cacheNickname
Definition
sch_footprint_field_reconciler.h:52
SCH_FP_FIELD_RECONCILE_RESULT
Definition
sch_footprint_field_reconciler.h:31
SCH_FP_FIELD_RECONCILE_RESULT::m_relinkedToCache
int m_relinkedToCache
footprint fields re-pointed at the generated cache
Definition
sch_footprint_field_reconciler.h:32
SCH_FP_FIELD_RECONCILE_RESULT::m_keptSource
int m_keptSource
footprint fields left pointing at a provenance source library
Definition
sch_footprint_field_reconciler.h:33
src
eeschema
sch_footprint_field_reconciler.h
Generated on Sat Jul 25 2026 00:05:55 for KiCad PCB EDA Suite by
1.13.2