Represent a record.
More...
#include <Record.h>
Represent a record.
Definition at line 149 of file Record.h.
◆ Record() [1/2]
Construct an empty record.
Definition at line 153 of file Record.h.
◆ Record() [2/2]
Construct a record from its type, payload and id.
The flags chunk and last_record can be added to indicate if the record is aprt of a chunk or the last one in a message.
- Parameters
-
type | The type of the record. |
payload | The payload of the record. |
id | The id associated with the record. |
chunk | If true then this record is a chunk of a bigger record. |
last_record | If true then this record is the last of the message containing it. |
Definition at line 168 of file Record.h.
◆ type
Type of the record.
Definition at line 185 of file Record.h.
◆ payload
Value of the payload.
Definition at line 190 of file Record.h.
◆ id
ID of the record.
Definition at line 195 of file Record.h.
◆ chunk
If true, this record is a chunked record.
Definition at line 200 of file Record.h.
◆ last_record
If true, this record is the last one of the payload containing it.
Definition at line 205 of file Record.h.