KiCad PCB EDA Suite
Loading...
Searching...
No Matches
altium_project_variants.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 ALTIUM_PROJECT_VARIANTS_H
21#define ALTIUM_PROJECT_VARIANTS_H
22
23#include <map>
24#include <vector>
25#include <wx/string.h>
26
27#include <kiid.h>
28
37{
38 wxString designator;
39
40 // Component's own unique id (final segment of the Altium path); the value used for matching.
41 wxString uniqueId;
42
43 int kind = 0;
44 std::map<wxString, wxString> alternateFields;
45};
46
47
54{
55 wxString name;
56 wxString description;
57 std::vector<ALTIUM_VARIANT_ENTRY> variations;
58};
59
60
67std::vector<ALTIUM_PROJECT_VARIANT> ParseAltiumProjectVariants( const wxString& aPrjPcbPath );
68
69
81std::map<wxString, wxString> ParseAltiumProjectParameters( const wxString& aPrjPcbPath );
82
83
93KIID AltiumUniqueIdToKiid( const wxString& aUniqueId );
94
95#endif // ALTIUM_PROJECT_VARIANTS_H
std::vector< ALTIUM_PROJECT_VARIANT > ParseAltiumProjectVariants(const wxString &aPrjPcbPath)
Parse all [ProjectVariantN] sections from an Altium .PrjPcb project file.
std::map< wxString, wxString > ParseAltiumProjectParameters(const wxString &aPrjPcbPath)
Parse all [ParameterN] sections from an Altium .PrjPcb project file.
KIID AltiumUniqueIdToKiid(const wxString &aUniqueId)
Derive a stable KIID from an Altium component unique id.
Definition kiid.h:44
A project-level assembly variant parsed from an Altium .PrjPcb file.
std::vector< ALTIUM_VARIANT_ENTRY > variations
A single component variation within an Altium project variant.
int kind
wxString uniqueId
wxString designator
std::map< wxString, wxString > alternateFields