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
38
struct
ALTIUM_VARIANT_ENTRY
39
{
40
wxString
designator
;
41
wxString
uniqueId
;
42
int
kind
= 0;
43
std::map<wxString, wxString>
alternateFields
;
44
};
45
46
52
struct
ALTIUM_PROJECT_VARIANT
53
{
54
wxString
name
;
55
wxString
description
;
56
std::vector<ALTIUM_VARIANT_ENTRY>
variations
;
57
};
58
59
66
std::vector<ALTIUM_PROJECT_VARIANT>
ParseAltiumProjectVariants
(
const
wxString& aPrjPcbPath );
67
68
#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:107
ALTIUM_PROJECT_VARIANT
A project-level assembly variant parsed from an Altium .PrjPcb file.
Definition
altium_project_variants.h:53
ALTIUM_PROJECT_VARIANT::variations
std::vector< ALTIUM_VARIANT_ENTRY > variations
Definition
altium_project_variants.h:56
ALTIUM_PROJECT_VARIANT::description
wxString description
Definition
altium_project_variants.h:55
ALTIUM_PROJECT_VARIANT::name
wxString name
Definition
altium_project_variants.h:54
ALTIUM_VARIANT_ENTRY
A single component variation within an Altium project variant.
Definition
altium_project_variants.h:39
ALTIUM_VARIANT_ENTRY::kind
int kind
Definition
altium_project_variants.h:42
ALTIUM_VARIANT_ENTRY::uniqueId
wxString uniqueId
Definition
altium_project_variants.h:41
ALTIUM_VARIANT_ENTRY::designator
wxString designator
Definition
altium_project_variants.h:40
ALTIUM_VARIANT_ENTRY::alternateFields
std::map< wxString, wxString > alternateFields
Definition
altium_project_variants.h:43
src
common
io
altium
altium_project_variants.h
Generated on Fri Mar 13 2026 00:07:23 for KiCad PCB EDA Suite by
1.13.2