MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / openCsvFile

Method openCsvFile

mainwindow.cpp:815–823  ·  view source on GitHub ↗

* @brief Open a new CSV file to save received data * */

Source from the content-addressed store, hash-verified

813 *
814 */
815void MainWindow::openCsvFile(void)
816{
817 m_csvFile = new QFile(QDateTime::currentDateTime().toString("yyyy-MM-d-HH-mm-ss-")+"data-out.csv");
818 if(!m_csvFile)
819 return;
820 if (!m_csvFile->open(QIODevice::ReadWrite | QIODevice::Text))
821 return;
822
823}
824/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
825
826/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected