#include <diskiobuffers.h>
Public Slots | |
void | setFile (QString filename) |
open a file | |
Public Member Functions | |
CSVWriter (QObject *=0) | |
QString | ending () const |
The ending of your files. | |
void | writeDataSet (NSCore::AcqisitionDataSet &data) |
Write a single dataset to disk. | |
Private Attributes | |
NSCore::MathTreeRoot * | _timealign |
NSCore::MathTreeRoot * | _timeinterval |
This writes CSV files which gives the posibility to load and show the waveforms in gnuplot.
Columns are: sample, ch1, ch2,...
The blocks are separated by two newlines, just as gnuplot likes it.
NSDiskIO::CSVWriter::CSVWriter | ( | QObject * | = 0 |
) |
QString NSDiskIO::CSVWriter::ending | ( | ) | const [inline, virtual] |
The ending of your files.
You have to return the ending of your files without the dot.
Implements NSDiskIO::AbstractWriter.
void NSDiskIO::CSVWriter::writeDataSet | ( | NSCore::AcqisitionDataSet & | data | ) | [virtual] |
Write a single dataset to disk.
You have to implement this function to write a dataset to disk. There is no need for other things to do, the rest will be done by customEvent of the AbstractDiskWriter
data | the dataset you should write |
Implements NSDiskIO::AbstractWriter.
void NSDiskIO::CSVWriter::setFile | ( | QString | ) | [inline, virtual, slot] |