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

Method tableGetH

app/src/DataModel/DataTable.cpp:663–672  ·  view source on GitHub ↗

* @brief Returns a register value by handle; empty QVariant for a stale or invalid handle. */

Source from the content-addressed store, hash-verified

661 * @brief Returns a register value by handle; empty QVariant for a stale or invalid handle.
662 */
663QVariant DataModel::TableApiBridge::tableGetH(qint64 h)
664{
665 Q_ASSERT(store);
666
667 const auto* val = store->getByHandle(h);
668 if (!val)
669 return QVariant();
670
671 return val->isNumeric ? QVariant(val->numericValue) : QVariant(val->stringValue);
672}
673
674/**
675 * @brief Writes a value to a computed register by handle. An undefined or null value is a safe

Callers 2

prelude.jsFile · 0.80
SerialStudio.jsFile · 0.80

Calls 1

getByHandleMethod · 0.80

Tested by

no test coverage detected