-
Notifications
You must be signed in to change notification settings - Fork 0
/
Data_pattern.h~
44 lines (36 loc) · 938 Bytes
/
Data_pattern.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
#ifndef DataPattern_H
#define DataPattern_H
/*
* The data format we will be recieveing on Sunday is
* data[1] = ((uint8_t) << 8) | (uint8_t)) & 0XFF
* [0]
* data[1] = ((uint8_t) << 8) | (uint8_t)) & 0XFF
* [0]
* data[1] = ((uint8_t) << 8) | (uint8_t)) & 0XFF
* [0]
* data[1] = ((uint8_t) << 8) | (uint8_t)) & 0XFF
* [0]
* data[1] = ((uint8_t) << 8) | (uint8_t)) & 0XFF
* [0]
* data[1] = ((uint8_t) << 8) | (uint8_t)) & 0XFF
* [0]
* [0]
*/
/*But in the file each single line is defined as
* Time stamp: b'decimal value' //at max three lien for a three digits decimal value
* Time Stamp: b'\r'
* Time Stamp: b'\n'
*/
const std::string OF_Header = "Result/";
const std::string IF_Header = "Drop_Here/";
class DataPattern {
private:
std::ifstream input_file;
std::ofstream output_file;
char end_time_stamp = ':';
char start_num = '\'';
public:
DataPattern();
void read_line();
};
#endif