* @brief Closes the currently open CSV file and resets worker state. */
| 62 | * @brief Closes the currently open CSV file and resets worker state. |
| 63 | */ |
| 64 | void 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 |
nothing calls this directly
no test coverage detected