-
Notifications
You must be signed in to change notification settings - Fork 0
/
EVENT.h
56 lines (45 loc) · 1.29 KB
/
EVENT.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
#ifndef EVENT_H
#define EVENT_H
#include <vector>
#include <fstream>
class EVENT {
private:
std::vector<u_char> fid;
std::vector<u_char> wire;
std::vector<u_char> sopm; //TODO unknown
std::vector<u_char> homs;
std::vector<u_char> metabits;
int seq;
public:
EVENT(std::vector<u_char> w,std::vector<u_char> fid, std::vector<u_char> sopm, std::vector<u_char> homs) {
this->wire = w;
if (w.empty()) {
this->fid = fid;
this->seq = 1;
this->sopm = sopm;
this->homs = homs;
} else {
}
}
EVENT(std::vector<u_char> w, int seq = 1) {
this->wire = w;
if (w.empty()) {
this->fid = std::vector<u_char>();
this->seq = seq;
this->sopm = std::vector<u_char>();
this->homs = std::vector<u_char>();
//todo this->contbits = serialize();
} else {
}
}
std::vector<u_char> getFid() {
return this->fid;
}
int getSeq() {
return this->seq;
}
std::vector<u_char> getHoms() {
return this->homs;
}
};
#endif