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, you may find one here:
18
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19
* or you may search the http://www.gnu.org website for the version 2 license,
20
* or you may write to the Free Software Foundation, Inc.,
21
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22
*/
23
24
#ifndef ALTIUM_PROJECT_VARIANTS_H
25
#define ALTIUM_PROJECT_VARIANTS_H
26
27
#include <map>
28
#include <vector>
29
#include <wx/string.h>
30
31
#include <
kiid.h
>
32
40
struct
ALTIUM_VARIANT_ENTRY
41
{
42
wxString
designator
;
43
44
// Component's own unique id (final segment of the Altium path); the value used for matching.
45
wxString
uniqueId
;
46
47
int
kind
= 0;
48
std::map<wxString, wxString>
alternateFields
;
49
};
50
51
57
struct
ALTIUM_PROJECT_VARIANT
58
{
59
wxString
name
;
60
wxString
description
;
61
std::vector<ALTIUM_VARIANT_ENTRY>
variations
;
62
};
63
64
71
std::vector<ALTIUM_PROJECT_VARIANT>
ParseAltiumProjectVariants
(
const
wxString& aPrjPcbPath );
72
73
85
std::map<wxString, wxString>
ParseAltiumProjectParameters
(
const
wxString& aPrjPcbPath );
86
87
97
KIID
AltiumUniqueIdToKiid
(
const
wxString& aUniqueId );
98
99
#endif
// ALTIUM_PROJECT_VARIANTS_H
ParseAltiumProjectVariants
std::vector< ALTIUM_PROJECT_VARIANT > ParseAltiumProjectVariants(const wxString &aPrjPcbPath)
Parse all [ProjectVariantN] sections from an Altium .PrjPcb project file.
Definition
altium_project_variants.cpp:175
ParseAltiumProjectParameters
std::map< wxString, wxString > ParseAltiumProjectParameters(const wxString &aPrjPcbPath)
Parse all [ParameterN] sections from an Altium .PrjPcb project file.
Definition
altium_project_variants.cpp:132
AltiumUniqueIdToKiid
KIID AltiumUniqueIdToKiid(const wxString &aUniqueId)
Derive a stable KIID from an Altium component unique id.
Definition
altium_project_variants.cpp:34
KIID
Definition
kiid.h:48
kiid.h
ALTIUM_PROJECT_VARIANT
A project-level assembly variant parsed from an Altium .PrjPcb file.
Definition
altium_project_variants.h:58
ALTIUM_PROJECT_VARIANT::variations
std::vector< ALTIUM_VARIANT_ENTRY > variations
Definition
altium_project_variants.h:61
ALTIUM_PROJECT_VARIANT::description
wxString description
Definition
altium_project_variants.h:60
ALTIUM_PROJECT_VARIANT::name
wxString name
Definition
altium_project_variants.h:59
ALTIUM_VARIANT_ENTRY
A single component variation within an Altium project variant.
Definition
altium_project_variants.h:41
ALTIUM_VARIANT_ENTRY::kind
int kind
Definition
altium_project_variants.h:47
ALTIUM_VARIANT_ENTRY::uniqueId
wxString uniqueId
Definition
altium_project_variants.h:45
ALTIUM_VARIANT_ENTRY::designator
wxString designator
Definition
altium_project_variants.h:42
ALTIUM_VARIANT_ENTRY::alternateFields
std::map< wxString, wxString > alternateFields
Definition
altium_project_variants.h:48
src
common
io
altium
altium_project_variants.h
Generated on Sat Jun 6 2026 00:06:26 for KiCad PCB EDA Suite by
1.13.2