20#ifndef PADS_ATTRIBUTE_MAPPER_H
21#define PADS_ATTRIBUTE_MAPPER_H
92 void AddMapping(
const std::string& aPadsAttr,
const std::string& aKiCadField );
static constexpr const char * FIELD_MANUFACTURER
std::map< std::string, std::string > m_standardMappings
static constexpr const char * FIELD_DATASHEET
const std::map< std::string, std::string > & GetMappings() const
Get all custom mappings.
std::map< std::string, std::string > m_customMappings
bool IsReferenceField(const std::string &aPadsAttr) const
Check if a PADS attribute maps to the Reference field.
std::string GetKiCadFieldName(const std::string &aPadsAttr) const
Get the KiCad field name for a PADS attribute.
bool IsFootprintField(const std::string &aPadsAttr) const
Check if a PADS attribute maps to the Footprint field.
static constexpr const char * FIELD_REFERENCE
static constexpr const char * FIELD_MPN
bool IsStandardField(const std::string &aPadsAttr) const
Check if a PADS attribute maps to a standard KiCad field.
void AddMapping(const std::string &aPadsAttr, const std::string &aKiCadField)
Add or override a custom attribute mapping.
static constexpr const char * FIELD_VALUE
std::string normalizeAttrName(const std::string &aName) const
bool IsValueField(const std::string &aPadsAttr) const
Check if a PADS attribute maps to the Value field.
static constexpr const char * FIELD_FOOTPRINT