-
Notifications
You must be signed in to change notification settings - Fork 38
/
ModulesInterfaces.h
98 lines (84 loc) · 2.46 KB
/
ModulesInterfaces.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#pragma once
#include "ECGClasses.h"
#include "ECGChannelInfo.h"
#include "ECGHRT.h"
#include "ECGHRV1.h"
#include "ECGHRV2.h"
#include "ECGHRVDFA.h"
#include "ECGRs.h"
#include "ECGSignal.h"
#include "ECGST.h"
#include "ECGTWave.h"
#include "ECGWaves.h"
#include <map>
#include <string>
typedef std::map<std::string, double> ParametersTypes;
class GlobalInterface
{
public:
GlobalInterface() : run_(false) {}
virtual void setParams (ParametersTypes &) = 0;
private:
bool run_;
friend class ECGController;
};
class ECGBaselineModule : public GlobalInterface
{
public:
ECGBaselineModule() : GlobalInterface() {}
virtual void runModule (const ECGSignal &, const ECGInfo &, ECGSignalChannel &) = 0;
};
class RPeaksModule : public GlobalInterface
{
public:
RPeaksModule() : GlobalInterface() {}
virtual void runModule (const ECGSignalChannel &, const ECGInfo &, ECGRs &) = 0;
};
class WavesModule : public GlobalInterface
{
public:
WavesModule() : GlobalInterface() {}
virtual void runModule (const ECGSignalChannel &, const ECGInfo &, const ECGRs &, ECGWaves &) = 0;
};
class HRV1Module : public GlobalInterface
{
public:
HRV1Module() : GlobalInterface() {}
virtual void runModule (const ECGInfo &, const ECGRs &, ECGHRV1 &) = 0;
};
class HRV2Module : public GlobalInterface
{
public:
HRV2Module() : GlobalInterface() {}
virtual void runModule (const ECGInfo &info, const ECGRs &, ECGHRV2 &) = 0;
};
class HRVDFAModule : public GlobalInterface
{
public:
HRVDFAModule() : GlobalInterface() {}
virtual void runModule (const ECGRs &, ECGHRVDFA &) = 0;
};
class QRSClassModule : public GlobalInterface
{
public:
QRSClassModule() : GlobalInterface() {}
virtual void runModule (const ECGWaves &, const ECGSignalChannel &, const ECGInfo &, QRSClass &) = 0;
};
class STIntervalModule : public GlobalInterface
{
public:
STIntervalModule() : GlobalInterface() {}
virtual void runModule (const ECGRs &, const ECGWaves &, const ECGSignalChannel &, const ECGInfo &, ECGST &) = 0;
};
class TWaveAltModule : public GlobalInterface
{
public:
TWaveAltModule() : GlobalInterface() {}
virtual void runModule (const ECGWaves &, const ECGSignalChannel &, ECGInfo &, ECGTWave &) = 0;
};
class HRTModule : public GlobalInterface
{
public:
HRTModule() : GlobalInterface() {}
virtual void runModule (const ECGRs &, const ECGWaves &, const QRSClass &, const ECGInfo &, ECGHRT &) = 0;
};