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

Function takeParam

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

* @brief Patch optional dataset fields onto @p d; returns non-empty error string on failure. */ * @brief Returns true if @a params has @a key; records the key into @a consumed. */

Source from the content-addressed store, hash-verified

4759 * @brief Returns true if @a params has @a key; records the key into @a consumed.
4760 */
4761static bool takeParam(const QJsonObject& params, QSet<QString>& consumed, const QString& key)
4762{
4763 if (!params.contains(key))
4764 return false;
4765
4766 consumed.insert(key);
4767 return true;
4768}
4769
4770/**
4771 * @brief Applies title/units/widget text fields and visualization toggles to @a d.

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected