|
KiCad PCB EDA Suite
|
Variant information for a footprint. More...
#include <footprint.h>
Public Member Functions | |
| FOOTPRINT_VARIANT (const wxString &aName=wxEmptyString) | |
| wxString | GetName () const |
| void | SetName (const wxString &aName) |
| bool | GetDNP () const |
| void | SetDNP (bool aDNP) |
| bool | GetExcludedFromBOM () const |
| void | SetExcludedFromBOM (bool aExclude) |
| bool | GetExcludedFromPosFiles () const |
| void | SetExcludedFromPosFiles (bool aExclude) |
| wxString | GetFieldValue (const wxString &aFieldName) const |
| Get a field value override for this variant. | |
| void | SetFieldValue (const wxString &aFieldName, const wxString &aValue) |
| Set a field value override for this variant. | |
| bool | HasFieldValue (const wxString &aFieldName) const |
| const std::map< wxString, wxString > & | GetFields () const |
| bool | operator== (const FOOTPRINT_VARIANT &aOther) const |
Private Attributes | |
| wxString | m_name |
| bool | m_dnp |
| bool | m_excludedFromBOM |
| bool | m_excludedFromPosFiles |
| std::map< wxString, wxString > | m_fields |
| Field value overrides for this variant. | |
Variant information for a footprint.
Footprint variants store per-variant overrides for DNP, exclusion flags, and field values. These are synchronized with SCH_SYMBOL_VARIANT during Update PCB from Schematic operations.
Definition at line 143 of file footprint.h.
|
inline |
Definition at line 146 of file footprint.h.
References m_dnp, m_excludedFromBOM, m_excludedFromPosFiles, and m_name.
Referenced by operator==().
|
inline |
Definition at line 157 of file footprint.h.
References m_dnp.
Referenced by BOARD_NETLIST_UPDATER::applyComponentVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and FOOTPRINT::GetDNPForVariant().
|
inline |
Definition at line 160 of file footprint.h.
References m_excludedFromBOM.
Referenced by BOARD_NETLIST_UPDATER::applyComponentVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and FOOTPRINT::GetExcludedFromBOMForVariant().
|
inline |
Definition at line 163 of file footprint.h.
References m_excludedFromPosFiles.
Referenced by BOARD_NETLIST_UPDATER::applyComponentVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and FOOTPRINT::GetExcludedFromPosFilesForVariant().
|
inline |
Definition at line 196 of file footprint.h.
References m_fields.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Get a field value override for this variant.
| aFieldName | The name of the field. |
Definition at line 171 of file footprint.h.
References m_fields.
Referenced by BOARD_NETLIST_UPDATER::applyComponentVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and FOOTPRINT::GetFieldValueForVariant().
|
inline |
Definition at line 154 of file footprint.h.
References m_name.
Referenced by BOOST_AUTO_TEST_CASE(), and FOOTPRINT::SetVariant().
|
inline |
Definition at line 191 of file footprint.h.
References m_fields.
Referenced by BOARD_NETLIST_UPDATER::applyComponentVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and FOOTPRINT::GetFieldValueForVariant().
|
inline |
Definition at line 198 of file footprint.h.
References FOOTPRINT_VARIANT(), m_dnp, m_excludedFromBOM, m_excludedFromPosFiles, m_fields, and m_name.
|
inline |
Definition at line 158 of file footprint.h.
References m_dnp.
Referenced by FOOTPRINT::AddVariant(), BOARD_NETLIST_UPDATER::applyComponentVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_IO_KICAD_SEXPR_PARSER::parseFootprintVariant(), and PCB_PROPERTIES_PANEL::valueChanged().
|
inline |
Definition at line 161 of file footprint.h.
References m_excludedFromBOM.
Referenced by FOOTPRINT::AddVariant(), BOARD_NETLIST_UPDATER::applyComponentVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_IO_KICAD_SEXPR_PARSER::parseFootprintVariant(), and PCB_PROPERTIES_PANEL::valueChanged().
|
inline |
Definition at line 164 of file footprint.h.
References m_excludedFromPosFiles.
Referenced by FOOTPRINT::AddVariant(), BOARD_NETLIST_UPDATER::applyComponentVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_IO_KICAD_SEXPR_PARSER::parseFootprintVariant(), and PCB_PROPERTIES_PANEL::valueChanged().
|
inline |
Set a field value override for this variant.
| aFieldName | The name of the field. |
| aValue | The value to set. |
Definition at line 186 of file footprint.h.
References m_fields.
Referenced by BOARD_NETLIST_UPDATER::applyComponentVariants(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB_IO_KICAD_SEXPR_PARSER::parseFootprintVariant(), and PCB_FOOTPRINT_FIELD_PROPERTY::setter().
|
inline |
Definition at line 155 of file footprint.h.
References m_name.
Referenced by FOOTPRINT::RenameVariant(), and FOOTPRINT::SetVariant().
|
private |
Definition at line 209 of file footprint.h.
Referenced by FOOTPRINT_VARIANT(), GetDNP(), operator==(), and SetDNP().
|
private |
Definition at line 210 of file footprint.h.
Referenced by FOOTPRINT_VARIANT(), GetExcludedFromBOM(), operator==(), and SetExcludedFromBOM().
|
private |
Definition at line 211 of file footprint.h.
Referenced by FOOTPRINT_VARIANT(), GetExcludedFromPosFiles(), operator==(), and SetExcludedFromPosFiles().
|
private |
Field value overrides for this variant.
Definition at line 212 of file footprint.h.
Referenced by GetFields(), GetFieldValue(), HasFieldValue(), operator==(), and SetFieldValue().
|
private |
Definition at line 208 of file footprint.h.
Referenced by FOOTPRINT_VARIANT(), GetName(), operator==(), and SetName().