KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sym_item_diff.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 3
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, you may find one here:
18 * http://www.gnu.org/licenses/gpl-3.0.html
19 */
20
21#ifndef SYM_ITEM_DIFF_H
22#define SYM_ITEM_DIFF_H
23
25
26#include <vector>
27#include <wx/string.h>
28
29
30class LIB_SYMBOL;
31class EDA_ITEM;
32
33
34namespace KICAD_DIFF
35{
36
38{
39 const EDA_ITEM* item; // after-side item, or before-side for REMOVED
40 wxString typeName; // "Pin", "Field", "Graphic", "Text"
41 wxString key; // pin number or field name, empty for graphics
42 CHANGE_KIND kind; // ADDED, REMOVED or MODIFIED
43 std::vector<PROPERTY_DELTA> deltas;
44};
45
46
53std::vector<SYM_ELEMENT> DiffSymbolElements( const LIB_SYMBOL* aBefore, const LIB_SYMBOL* aAfter );
54
55} // namespace KICAD_DIFF
56
57#endif // SYM_ITEM_DIFF_H
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:96
Define a library symbol object.
Definition lib_symbol.h:79
CHANGE_KIND
Coarse classification of a single item-level change between two documents.
std::vector< SYM_ELEMENT > DiffSymbolElements(const LIB_SYMBOL *aBefore, const LIB_SYMBOL *aAfter)
Compares the elements of two library symbols.
const EDA_ITEM * item
std::vector< PROPERTY_DELTA > deltas