OpenHantek
Toggle main menu visibility
Loading...
Searching...
No Matches
exporterinterface.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
3
#pragma once
4
5
#include <QCoreApplication>
6
#include <QIcon>
7
#include <QString>
8
9
#include <memory>
10
11
class
ExporterRegistry
;
12
class
PPresult
;
13
18
class
ExporterInterface
{
19
public
:
20
virtual
~ExporterInterface
();
28
virtual
void
create
(
ExporterRegistry
*
registry
) = 0;
29
34
virtual
QString
name
() = 0;
35
39
virtual
QString
format
() = 0;
40
44
enum class
Type
{
SnapshotExport
,
ContinuousExport
};
45
50
virtual
Type
type
() = 0;
51
57
virtual
bool
samples
(
const
std::shared_ptr< PPresult > ) = 0;
58
65
virtual
bool
save
() = 0;
66
75
virtual
float
progress
() = 0;
76
77
protected
:
78
ExporterRegistry
*
registry
;
79
};
ExporterInterface
Definition
exporterinterface.h:18
ExporterInterface::~ExporterInterface
virtual ~ExporterInterface()
Definition
exporterinterface.cpp:5
ExporterInterface::progress
virtual float progress()=0
The progress of receiving and processing samples. If the exporter returns 1, it will be called back b...
ExporterInterface::name
virtual QString name()=0
ExporterInterface::samples
virtual bool samples(const std::shared_ptr< PPresult >)=0
ExporterInterface::save
virtual bool save()=0
ExporterInterface::format
virtual QString format()=0
ExporterInterface::create
virtual void create(ExporterRegistry *registry)=0
ExporterInterface::Type
Type
Definition
exporterinterface.h:44
ExporterInterface::Type::SnapshotExport
@ SnapshotExport
Definition
exporterinterface.h:44
ExporterInterface::Type::ContinuousExport
@ ContinuousExport
Definition
exporterinterface.h:44
ExporterInterface::registry
ExporterRegistry * registry
Definition
exporterinterface.h:78
ExporterInterface::type
virtual Type type()=0
ExporterRegistry
Definition
exporterregistry.h:23
PPresult
Post processing results.
Definition
ppresult.h:43
exporting
exporterinterface.h
Generated by
1.17.0