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

Method closeResources

app/src/CSV/Export.cpp:64–74  ·  view source on GitHub ↗

* @brief Closes the currently open CSV file and resets worker state. */

Source from the content-addressed store, hash-verified

62 * @brief Closes the currently open CSV file and resets worker state.
63 */
64void CSV::ExportWorker::closeResources()
65{
66 if (!m_csvFile.isOpen())
67 return;
68
69 m_csvFile.close();
70 m_schema = DataModel::ExportSchema{};
71 m_textStream.setDevice(nullptr);
72 m_lastFinalValues.clear();
73 DataModel::clear_frame(m_templateFrame);
74}
75
76/**
77 * @brief Stores the schema template frame; must run on the worker thread (queued invoke) so

Callers

nothing calls this directly

Calls 5

clear_frameFunction · 0.85
setDeviceMethod · 0.80
isOpenMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected