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

Method connectedDeviceCount

app/src/IO/ConnectionManager.cpp:206–214  ·  view source on GitHub ↗

* @brief Returns the number of currently open devices. */

Source from the content-addressed store, hash-verified

204 * @brief Returns the number of currently open devices.
205 */
206int IO::ConnectionManager::connectedDeviceCount() const
207{
208 int count = 0;
209 for (const auto& [id, dm] : m_devices)
210 if (dm && dm->isOpen())
211 ++count;
212
213 return count;
214}
215
216/**
217 * @brief Returns true when the active connection target(s) are configured.

Callers

nothing calls this directly

Calls 1

isOpenMethod · 0.45

Tested by

no test coverage detected