-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_structs.hpp
41 lines (34 loc) · 1008 Bytes
/
data_structs.hpp
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 VI_COMMON_DATA_STRUCTS
#define VI_COMMON_DATA_STRUCTS
#include "common_defs.h"
namespace vi
{
struct Message
{
uint16_t MessageSize;
uint8_t MessageType;
uint64_t MessageId;
uint64_t MessageData;
Message() : MessageSize(0),
MessageType(0),
MessageId(0),
MessageData(0)
{
}
Message(const Message& other) : MessageSize(other.MessageSize),
MessageType(other.MessageType),
MessageId(other.MessageId),
MessageData(other.MessageData)
{
}
Message& operator=(const Message& other)
{
MessageSize = other.MessageSize;
MessageType = other.MessageType;
MessageId = other.MessageId;
MessageData = other.MessageData;
return *this;
}
};
};
#endif