[dlt] Export boolean[] values (#4082)

This commit is contained in:
Peter Johnson
2022-03-14 10:05:50 -07:00
committed by GitHub
parent f93c3331b3
commit fdfb31f164
2 changed files with 13 additions and 0 deletions

View File

@@ -485,6 +485,12 @@ static void ValueToCsv(wpi::raw_ostream& os, const Entry& entry,
fmt::print(os, "{}", val);
return;
}
} else if (entry.type == "boolean[]") {
std::vector<int> val;
if (record.GetBooleanArray(&val)) {
fmt::print(os, "{}", fmt::join(val, ";"));
return;
}
} else if (entry.type == "double[]") {
std::vector<double> val;
if (record.GetDoubleArray(&val)) {