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

Function findWorkspace

app/src/API/Handlers/WorkspacesHandler.cpp:47–50  ·  view source on GitHub ↗

* @brief Locates a workspace by id in ProjectModel's list. */

Source from the content-addressed store, hash-verified

45 * @brief Locates a workspace by id in ProjectModel's list.
46 */
47[[nodiscard]] static auto findWorkspace(const std::vector<DataModel::Workspace>& ws, int wid)
48{
49 return std::find_if(ws.begin(), ws.end(), [wid](const auto& w) { return w.workspaceId == wid; });
50}
51
52/**
53 * @brief Returns true when the project model is in ProjectFile mode and ready

Callers 2

getMethod · 0.85
removeMethod · 0.85

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected