* @brief Returns whether the device with the given source ID is currently open. */
| 195 | * @brief Returns whether the device with the given source ID is currently open. |
| 196 | */ |
| 197 | bool IO::ConnectionManager::isDeviceConnected(int deviceId) const |
| 198 | { |
| 199 | auto it = m_devices.find(deviceId); |
| 200 | return it != m_devices.end() && it->second && it->second->isOpen(); |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * @brief Returns the number of currently open devices. |