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

Method clearSourceEngine

app/src/DataModel/Scripting/FrameParser.cpp:444–457  ·  view source on GitHub ↗

* @brief Destroys the engine for the source (source 0 is reset in place). */

Source from the content-addressed store, hash-verified

442 * @brief Destroys the engine for the source (source 0 is reset in place).
443 */
444void DataModel::FrameParser::clearSourceEngine(int sourceId)
445{
446 auto it = m_engines.find(sourceId);
447 if (it == m_engines.end())
448 return;
449
450 if (sourceId == 0) {
451 it->second->reset();
452 return;
453 }
454
455 m_engines.erase(it);
456 refreshEngineCaches();
457}
458
459//--------------------------------------------------------------------------------------------------
460// Parsing dispatch

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected