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

Method datasetGetRaw

app/src/DataModel/DataTable.cpp:696–705  ·  view source on GitHub ↗

* @brief Returns the raw (pre-transform) value of a dataset. */

Source from the content-addressed store, hash-verified

694 * @brief Returns the raw (pre-transform) value of a dataset.
695 */
696QVariant DataModel::TableApiBridge::datasetGetRaw(int uid)
697{
698 Q_ASSERT(store);
699
700 const auto* val = store->getDatasetRaw(uid);
701 if (!val)
702 return QVariant();
703
704 return val->isNumeric ? QVariant(val->numericValue) : QVariant(val->stringValue);
705}
706
707/**
708 * @brief Returns the final (post-transform) value of a dataset.

Callers 2

prelude.jsFile · 0.80
SerialStudio.jsFile · 0.80

Calls 1

getDatasetRawMethod · 0.80

Tested by

no test coverage detected