OpenHantek
Loading...
Searching...
No Matches
exportcsv.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#pragma once
4#include "exporterdata.h"
5#include "exporterinterface.h"
6
7#include <QFile>
8#include <QTextStream>
9
11 Q_DECLARE_TR_FUNCTIONS( LegacyExportDrawer )
12
13 public:
15 void create( ExporterRegistry *registry ) override;
16 QString name() override;
17 QString format() override;
18 Type type() override;
19 bool samples( const std::shared_ptr< PPresult > newData ) override;
20 bool save() override;
21 float progress() override;
22
23 private:
24 QFile *getFile();
25 void fillHeaders( QTextStream &jsonStream, const ExporterData &dto, const char *sep );
26 void fillData( QTextStream &jsonStream, const ExporterData &dto, const char *sep );
27 std::shared_ptr< PPresult > data;
28};
void fillData(QTextStream &jsonStream, const ExporterData &dto, const char *sep)
Definition exportcsv.cpp:76
QString name() override
Definition exportcsv.cpp:22
bool samples(const std::shared_ptr< PPresult > newData) override
Definition exportcsv.cpp:28
std::shared_ptr< PPresult > data
Definition exportcsv.h:27
QFile * getFile()
Definition exportcsv.cpp:33
QString format() override
Definition exportcsv.cpp:24
void create(ExporterRegistry *registry) override
Definition exportcsv.cpp:17
bool save() override
Definition exportcsv.cpp:106
void fillHeaders(QTextStream &jsonStream, const ExporterData &dto, const char *sep)
Definition exportcsv.cpp:49
float progress() override
The progress of receiving and processing samples. If the exporter returns 1, it will be called back b...
Definition exportcsv.cpp:130
Type type() override
Definition exportcsv.cpp:26
ExporterCSV()
Definition exportcsv.cpp:15
Definition exporterdata.h:11
Definition exporterinterface.h:18
Type
Definition exporterinterface.h:44
ExporterRegistry * registry
Definition exporterinterface.h:78
Definition exporterregistry.h:23