-
Notifications
You must be signed in to change notification settings - Fork 0
/
iodata.h
41 lines (38 loc) · 1.03 KB
/
iodata.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
#ifndef IODATA_H
#define IODATA_H
#include <QSettings>
#include <QVector>
#include <QString>
#include <QColor>
#include <QVariant>
#include <opencv2/imgcodecs.hpp>
#include <pcamera.h>
#include <ipcam.h>
#include <ocvcolor.h>
class iodata {
public:
iodata();
int clearFile() {
this->mySettings->clear();
return -1;
}
//CAMS
void save_ips(QVector<pCamera*> ips);
void save_ip(ipcam* ip, pCamera* ipDel);
QVector<pCamera*> get_ips();
ipcam* get_ip(int id);
/*void remove_ips();
void remove_ip(pCamera* ip);*/
int get_ip_id(pCamera* node);
//HSVS
void save_hsvs(QVector<ocvColor*> myColors);
void save_hsv(ocvColor* myColor, int id);
QVector<ocvColor*> get_HSVcolors();
ocvColor* get_HSVcolor(int id);
/*void remove_colors();
void remove_color(ocvColor* remColor);*/
int get_color_id(ocvColor* node);
private:
QSettings* mySettings = nullptr;
};
#endif // IODATA_H