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
36
struct
ALTIUM_VARIANT_ENTRY
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
53
struct
ALTIUM_PROJECT_VARIANT
54
{
55
wxString
name
;
56
wxString
description
;
57
std::vector<ALTIUM_VARIANT_ENTRY>
variations
;
58
};
59
60
67
std::vector<ALTIUM_PROJECT_VARIANT>
ParseAltiumProjectVariants
(
const
wxString& aPrjPcbPath );
68
69
81
std::map<wxString, wxString>
ParseAltiumProjectParameters
(
const
wxString& aPrjPcbPath );
82
83
93
KIID
AltiumUniqueIdToKiid
(
const
wxString& aUniqueId );
94
95
#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:171
ParseAltiumProjectParameters
std::map< wxString, wxString > ParseAltiumProjectParameters(const wxString &aPrjPcbPath)
Parse all [ParameterN] sections from an Altium .PrjPcb project file.
Definition
altium_project_variants.cpp:128
AltiumUniqueIdToKiid
KIID AltiumUniqueIdToKiid(const wxString &aUniqueId)
Derive a stable KIID from an Altium component unique id.
Definition
altium_project_variants.cpp:30
KIID
Definition
kiid.h:44
kiid.h
ALTIUM_PROJECT_VARIANT
A project-level assembly variant parsed from an Altium .PrjPcb file.
Definition
altium_project_variants.h:54
ALTIUM_PROJECT_VARIANT::variations
std::vector< ALTIUM_VARIANT_ENTRY > variations
Definition
altium_project_variants.h:57
ALTIUM_PROJECT_VARIANT::description
wxString description
Definition
altium_project_variants.h:56
ALTIUM_PROJECT_VARIANT::name
wxString name
Definition
altium_project_variants.h:55
ALTIUM_VARIANT_ENTRY
A single component variation within an Altium project variant.
Definition
altium_project_variants.h:37
ALTIUM_VARIANT_ENTRY::kind
int kind
Definition
altium_project_variants.h:43
ALTIUM_VARIANT_ENTRY::uniqueId
wxString uniqueId
Definition
altium_project_variants.h:41
ALTIUM_VARIANT_ENTRY::designator
wxString designator
Definition
altium_project_variants.h:38
ALTIUM_VARIANT_ENTRY::alternateFields
std::map< wxString, wxString > alternateFields
Definition
altium_project_variants.h:44
src
common
io
altium
altium_project_variants.h
Generated on Fri Jun 26 2026 00:05:32 for KiCad PCB EDA Suite by
1.13.2