-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathResult.h
28 lines (22 loc) · 1015 Bytes
/
Result.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
#ifndef RESULT_H
#define RESULT_H
#include "Global.h"
class Result {
public:
Result (long baseAddr, BYTE data) {r_baseAddr = baseAddr; r_data = data;}
Result (long baseAddr, BYTE data, long length) {r_baseAddr = baseAddr; r_data = data; r_length = length;}
void setBaseAddr (long baseAddr) {r_baseAddr = baseAddr; }
long baseAddr () {return r_baseAddr; }
void setLength (long length) {r_length = length; }
long length () {return r_length; }
void setData (BYTE data) {r_data = data; }
BYTE data () {return r_data; }
int type () {return r_type; }
void setType (int type) {r_type = type; }
private:
long r_baseAddr;
long r_length;
BYTE r_data;
int r_type;
};
#endif // RESULT_H