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

Method finalize_frame

app/src/DataModel/Frame.cpp:46–56  ·  view source on GitHub ↗

* @brief Finalises a frame: commercial flag and stable uniqueId per dataset. */

Source from the content-addressed store, hash-verified

44 * @brief Finalises a frame: commercial flag and stable uniqueId per dataset.
45 */
46void DataModel::finalize_frame(DataModel::Frame& frame)
47{
48 frame.containsCommercialFeatures = SerialStudio::commercialCfg(frame.groups);
49 for (auto& group : frame.groups) {
50 for (auto& dataset : group.datasets) {
51 dataset.sourceId = group.sourceId;
52 if (dataset.uniqueId < 0)
53 dataset.uniqueId = dataset_unique_id(group.sourceId, dataset.groupId, dataset.datasetId);
54 }
55 }
56}
57
58//--------------------------------------------------------------------------------------------------
59// Configuration reading

Callers

nothing calls this directly

Calls 1

dataset_unique_idFunction · 0.85

Tested by

no test coverage detected