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

Function buildSnapshotHint

app/src/API/Handlers/ProjectHandler.cpp:3820–3833  ·  view source on GitHub ↗

* @brief Returns project.snapshot's caller hint, with a bulk-edit nudge above 10 datasets. */

Source from the content-addressed store, hash-verified

3818 * @brief Returns project.snapshot's caller hint, with a bulk-edit nudge above 10 datasets.
3819 */
3820static QString buildSnapshotHint(int totalDatasets)
3821{
3822 QString hint =
3823 QStringLiteral("Pass verbose=true to include frame parser source and source-level frame "
3824 "settings. For per-table register details, call project.dataTable.get with "
3825 "the table name.");
3826 if (totalDatasets >= 10)
3827 hint += QStringLiteral(" %1 datasets present -- bulk edits should go through project.batch "
3828 "(ops: [{command, params}, ...]) instead of looping individual updates; "
3829 "project.dataset.addMany handles 'create N similar' patterns.")
3830 .arg(totalDatasets);
3831
3832 return hint;
3833}
3834
3835/**
3836 * @brief Builds the top-level _explanations object summarizing the project's operating shape.

Callers 1

projectSnapshotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected