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

Method snapshotPlotTimeRings

app/src/UI/Dashboard.cpp:2388–2402  ·  view source on GitHub ↗

* @brief Snapshots plot time-ring contents keyed by dataset uniqueId. */

Source from the content-addressed store, hash-verified

2386 * @brief Snapshots plot time-ring contents keyed by dataset uniqueId.
2387 */
2388QHash<qint64, DSP::TimeRing> UI::Dashboard::snapshotPlotTimeRings() const
2389{
2390 QHash<qint64, DSP::TimeRing> out;
2391 const int n = widgetCount(SerialStudio::DashboardPlot);
2392 for (int i = 0; i < n; ++i) {
2393 const auto it = m_plotTimeRings.find(i);
2394 if (it == m_plotTimeRings.end())
2395 continue;
2396
2397 const auto& d = getDatasetWidget(SerialStudio::DashboardPlot, i);
2398 out.insert(ringSnapshotKey(d.sourceId, d.uniqueId), it.value());
2399 }
2400
2401 return out;
2402}
2403
2404/**
2405 * @brief Snapshots multiplot time-ring contents keyed by group uniqueId.

Callers

nothing calls this directly

Calls 3

ringSnapshotKeyFunction · 0.85
findMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected