MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / tryConvertAttributes

Method tryConvertAttributes

libs/librepcb/eagleimport/eagletypeconverter.cpp:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void EagleTypeConverter::tryConvertAttributes(
168 const QList<parseagle::Attribute>& in, AttributeList& out,
169 MessageLogger& log) const {
170 foreach (const auto& eagleAttr, in) {
171 if (auto lpObj = tryConvertAttribute(eagleAttr, log)) {
172 if (!out.contains(*lpObj->getKey())) {
173 out.append(lpObj);
174 }
175 }
176 }
177}
178
179void EagleTypeConverter::tryExtractMpnAndManufacturer(
180 AttributeList& attributes, SimpleString& mpn,

Callers 2

foreachFunction · 0.80
foreachFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected