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
26
27#include <memory>
28#include <set>
29#include <vector>
30#include <wx/string.h>
31
32
33class LIB_SYMBOL;
34class EDA_ITEM;
35
36
37namespace KICAD_DIFF
38{
39
46std::vector<LIB_ELEMENT> DiffSymbolElements( const LIB_SYMBOL* aBefore, const LIB_SYMBOL* aAfter );
47
56std::unique_ptr<LIB_SYMBOL> CombineSymbolEdits( const LIB_SYMBOL& aAncestor, const LIB_SYMBOL& aOurs,
57 const LIB_SYMBOL& aTheirs, const ITEM_CHANGE& aOurChange,
58 const ITEM_CHANGE& aTheirChange );
59
60} // namespace KICAD_DIFF
61
62#endif // SYM_ITEM_DIFF_H
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:98
Define a library symbol object.
Definition lib_symbol.h:114
std::vector< LIB_ELEMENT > DiffSymbolElements(const LIB_SYMBOL *aBefore, const LIB_SYMBOL *aAfter)
Compares the elements of two library symbols.
std::unique_ptr< LIB_SYMBOL > CombineSymbolEdits(const LIB_SYMBOL &aAncestor, const LIB_SYMBOL &aOurs, const LIB_SYMBOL &aTheirs, const ITEM_CHANGE &aOurChange, const ITEM_CHANGE &aTheirChange)
Combine two edits of one library symbol when neither can lose anything.
One change record on a single item.