-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvenicemessage.h
45 lines (35 loc) · 942 Bytes
/
venicemessage.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
#ifndef VENICEMESSAGE_H
#define VENICEMESSAGE_H
#include <vector>
using namespace std;
/**
* @brief The VeniceMessage class representing a message service containg required information for service advertisement
*/
class VeniceMessage
{
public:
/**
* @brief VeniceMessage constructor
* @param messageId The message identifier
* @param ack The acknolegement related to the message
* @param data The data contained by the message
*/
VeniceMessage(int messageId, bool ack, vector<byte> data);
/**
* @brief VeniceMessage destructor
*/
~VeniceMessage();
/**
* @brief get_size returns the size in bytes of the message data
* @return size in bytes
*/
int get_size();
private:
// The message identifier
int messageId;
// The acknolegement related to the message
bool ack;
// The message data
vector<byte> data;
};
#endif // VENICEMESSAGE_H