#include <Export.h>
◆ Export() [1/3]
Connect JSON Parser & Serial Manager signals to begin registering JSON dataframes into JSON list.
◆ Export() [2/3]
CSV::Export::Export |
( |
Export && |
| ) |
|
|
privatedelete |
◆ Export() [3/3]
CSV::Export::Export |
( |
const Export & |
| ) |
|
|
privatedelete |
◆ ~Export()
Close file & finnish write-operations before destroying the class
◆ closeFile
void CSV::Export::closeFile |
( |
| ) |
|
|
slot |
Write all remaining JSON frames & close the CSV file
◆ createCsvFile
Creates a new CSV file corresponding to the current project title & field count
◆ enabledChanged
void CSV::Export::enabledChanged |
( |
| ) |
|
|
signal |
◆ exportEnabled()
bool CSV::Export::exportEnabled |
( |
| ) |
const |
Returns true
if CSV export is enabled
◆ instance()
Returns a pointer to the only instance of this class
◆ isOpen()
bool CSV::Export::isOpen |
( |
| ) |
const |
Returns true
if the CSV output file is open
◆ openChanged
void CSV::Export::openChanged |
( |
| ) |
|
|
signal |
◆ openCurrentCsv
void CSV::Export::openCurrentCsv |
( |
| ) |
|
|
slot |
Open the current CSV file in the Explorer/Finder window
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ registerFrame
void CSV::Export::registerFrame |
( |
const QByteArray & |
data | ) |
|
|
privateslot |
Appends the latest data from the device to the output buffer
◆ setExportEnabled
void CSV::Export::setExportEnabled |
( |
const bool |
enabled | ) |
|
|
slot |
Enables or disables data export
◆ writeValues
void CSV::Export::writeValues |
( |
| ) |
|
|
privateslot |
Creates a CSV file based on the JSON frames contained in the JSON list.
- Note
- This function is called periodically every 1 second.
◆ m_csvFile
QFile CSV::Export::m_csvFile |
|
private |
◆ m_exportEnabled
bool CSV::Export::m_exportEnabled |
|
private |
◆ m_fieldCount
int CSV::Export::m_fieldCount |
|
private |
◆ m_frames
◆ m_textStream
QTextStream CSV::Export::m_textStream |
|
private |
◆ exportEnabled
bool CSV::Export::exportEnabled |
|
readwrite |
◆ isOpen
The documentation for this class was generated from the following files:
- /Users/alex/Documents/GitHub/Serial-Studio/src/CSV/Export.h
- /Users/alex/Documents/GitHub/Serial-Studio/src/CSV/Export.cpp