|
OpenHantek
|
#include <exporterinterface.h>
Public Types | |
| enum class | Type { SnapshotExport , ContinuousExport } |
Public Member Functions | |
| virtual | ~ExporterInterface () |
| virtual void | create (ExporterRegistry *registry)=0 |
| virtual QString | name ()=0 |
| virtual QString | format ()=0 |
| virtual Type | type ()=0 |
| virtual bool | samples (const std::shared_ptr< PPresult >)=0 |
| virtual bool | save ()=0 |
| virtual float | progress ()=0 |
| The progress of receiving and processing samples. If the exporter returns 1, it will be called back by the GUI via the save() method. | |
Protected Attributes | |
| ExporterRegistry * | registry |
Implement this interface and register your Exporter to the ExporterRegistry instance in the main routine to make an Exporter available.
|
strong |
|
virtual |
|
pure virtual |
Starts up this exporter. Acquires resources etc. Do not call this directly, it will be called by the exporter registry at some point. Release your resources in the destructor as usual.
| registry | The exporter registry instance. This is used to obtain a reference to the settings. |
Implemented in ExporterCSV, and ExporterJSON.
|
pure virtual |
Implemented in ExporterCSV, and ExporterJSON.
|
pure virtual |
Implemented in ExporterCSV, and ExporterJSON.
|
pure virtual |
The progress of receiving and processing samples. If the exporter returns 1, it will be called back by the GUI via the save() method.
Implemented in ExporterCSV, and ExporterJSON.
|
pure virtual |
A new sample set from the ExporterRegistry. The exporter needs to be active to receive samples. If it is a snapshot exporter, only one set of samples will be received.
Implemented in ExporterCSV, and ExporterJSON.
|
pure virtual |
Exporter: Save your received data and perform any conversions necessary. This method will be called in the GUI thread context and can create and show dialogs if required.
Implemented in ExporterCSV, and ExporterJSON.
|
pure virtual |
Implemented in ExporterCSV, and ExporterJSON.
|
protected |