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

Method currentTemplate

app/src/DataModel/Editors/FrameParserModel.cpp:831–838  ·  view source on GitHub ↗

* @brief Returns the descriptor of the source's selected template (default when unset). */

Source from the content-addressed store, hash-verified

829 * @brief Returns the descriptor of the source's selected template (default when unset).
830 */
831const DataModel::INativeTemplate* DataModel::FrameParserModel::currentTemplate() const
832{
833 const QString id = ProjectModel::instance().frameParserTemplate(m_sourceId);
834 if (const auto* tmpl = nativeTemplateById(id))
835 return tmpl;
836
837 return nativeTemplateById(defaultNativeTemplateId());
838}
839
840/**
841 * @brief Validates params by building a throwaway parser instance.

Callers

nothing calls this directly

Calls 1

frameParserTemplateMethod · 0.80

Tested by

no test coverage detected