Object Detection
5.0
Image Processing Using Qt and Opencv
abstractdevicewriter.h
1
#ifndef ABSTRACTDEVICEWRITER_H
2
#define ABSTRACTDEVICEWRITER_H
3
4
#include <QObject>
5
#include "observer.h"
6
#include "exception"
7
#include "QIODevice"
8
#include "devicehandler_global.h"
9
10
namespace
Devices
{
11
class
DECLARE_LIB
AbstractDeviceWriter
;
12
}
13
using namespace
Devices
;
14
class
Devices::AbstractDeviceWriter
:
public
Observer
15
{
16
Q_OBJECT
17
public
:
18
virtual
void
writeToDevice(
const
QString&) = 0;
19
virtual
void
openDevice() = 0;
20
virtual
void
closeDevice() = 0;
21
protected
:
22
explicit
AbstractDeviceWriter
(QObject *parent =
nullptr
);
23
24
signals:
25
void
errorIODevice(
const
QString&);
26
public
slots:
27
private
:
28
29
// Devices::Observer interface
30
public
slots:
31
virtual
void
onNotified(
const
ObservableData
&dt)
override
;
32
};
33
34
35
#endif // ABSTRACTDEVICEWRITER_H
Devices
Definition:
abstractdevicewriter.h:10
Devices::Observer
Definition:
observer.h:15
Devices::ObservableData
Definition:
observabledata.h:11
Devices::AbstractDeviceWriter
Definition:
abstractdevicewriter.h:14
object-detector
src
DevicesInterfaces
DeviceHandler
abstractdevicewriter.h
Generated by
1.8.13