MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / sendHeaderFrame

Method sendHeaderFrame

app/src/CSV/Player.cpp:614–634  ·  view source on GitHub ↗

* @brief Registers CSV column names with Quick Plot (excluding the timestamp). */

Source from the content-addressed store, hash-verified

612 * @brief Registers CSV column names with Quick Plot (excluding the timestamp).
613 */
614void CSV::Player::sendHeaderFrame()
615{
616 if (m_csvData.isEmpty())
617 return;
618
619 const auto& headerRow = m_csvData.first();
620 if (headerRow.size() <= 1)
621 return;
622
623 if (AppState::instance().operationMode() == SerialStudio::ProjectFile) {
624 buildReplayLayout();
625 if (m_multiSource)
626 return;
627 }
628
629 QStringList headers;
630 for (int i = 1; i < headerRow.size(); ++i)
631 headers.append(headerRow[i]);
632
633 DataModel::FrameBuilder::instance().registerQuickPlotHeaders(headers);
634}
635
636/**
637 * @brief Prompts the user to pick a date/time column or a manual row interval.

Callers

nothing calls this directly

Calls 6

isEmptyMethod · 0.80
firstMethod · 0.80
operationModeMethod · 0.80
sizeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected