"device",
"value",
"refdes",
+ "loadstatus"
};
bool has_header_member(string member) {
void process_seeed(string[string] entry)
{
-
if (entry["loadstatus"] != "smt")
return;
void process_digikey(string[string] entry)
{
+ if (entry["loadstatus"] == "noload")
+ return;
printf("%s,%s,%s %s\n",
entry["quantity"],
part_number(entry),
entry["value"]);
}
+void process_mouser(string[string] entry)
+{
+ if (entry["loadstatus"] == "noload")
+ return;
+ printf("%s|%s\n", part_number(entry), entry["quantity"]);
+}
+
void process_other(string[string] entry) {
+ if (entry["loadstatus"] == "noload")
+ return;
printf("%s,%s,%s,%s %s\n",
entry["vendor"],
entry["quantity"],
case "digikey":
process_digikey(entry);
break;
+ case "mouser":
+ process_mouser(entry);
+ break;
default:
process_other(entry);
break;