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

Method projectConfigurationOk

app/src/IO/ConnectionManager.cpp:1339–1355  ·  view source on GitHub ↗

* @brief Returns true when the current project sources are all configured. */

Source from the content-addressed store, hash-verified

1337 * @brief Returns true when the current project sources are all configured.
1338 */
1339bool IO::ConnectionManager::projectConfigurationOk() const
1340{
1341 const auto& sources = DataModel::ProjectModel::instance().sources();
1342 if (sources.empty())
1343 return false;
1344
1345 for (const auto& src : sources) {
1346 auto it = m_devices.find(src.sourceId);
1347 if (it == m_devices.end() || !it->second || !it->second->driver())
1348 return false;
1349
1350 if (!it->second->driver()->configurationOk())
1351 return false;
1352 }
1353
1354 return true;
1355}
1356
1357/**
1358 * @brief Routes a completed frame from device @p deviceId to FrameBuilder.

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.80
findMethod · 0.80
driverMethod · 0.45
configurationOkMethod · 0.45

Tested by

no test coverage detected