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

Function findKind

app/src/API/Handlers/ScriptsHandler.cpp:89–96  ·  view source on GitHub ↗

* @brief Looks up a kind by id; returns nullptr when unknown. */

Source from the content-addressed store, hash-verified

87 * @brief Looks up a kind by id; returns nullptr when unknown.
88 */
89static const detail::Kind* findKind(const QString& id)
90{
91 for (const auto& k : kinds())
92 if (k.id == id)
93 return &k;
94
95 return nullptr;
96}
97
98/**
99 * @brief Reads the manifest for one kind into a QJsonArray of entries.

Callers 1

getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected