Represent a record. More...
#include <Record.h>
Public Member Functions | |
Record () | |
Construct an empty record. More... | |
Record (RecordType type, const RecordPayload &payload, const RecordID &id, bool chunk, bool last_record) | |
Construct a record from its type, payload and id. More... | |
Data Fields | |
RecordType | type |
Type of the record. More... | |
RecordPayload | payload |
Value of the payload. More... | |
RecordID | id |
ID of the record. More... | |
bool | chunk: 1 |
If true, this record is a chunked record. More... | |
bool | last_record: 1 |
If true, this record is the last one of the payload containing it. More... | |
Record | ( | RecordType | type, |
const RecordPayload & | payload, | ||
const RecordID & | id, | ||
bool | chunk, | ||
bool | last_record | ||
) |
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.
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. |
bool last_record |
RecordPayload payload |
RecordType type |