![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
This class the response for a GroupTable::READ_ENTRIES_CMD
command.
More...
#include <group_table.h>
Public Member Functions | |
ReadEntriesResponse (Common::Result _code=Common::Result::OK, uint8_t _start=0, uint8_t _count=0) | |
Constructor. More... | |
uint16_t | size () const |
Number bytes needed to serialize the message. More... | |
uint16_t | pack (Common::ByteArray &array, uint16_t offset=0) const |
Write the object on to a ByteArray so it can be sent over the network. More... | |
uint16_t | unpack (const Common::ByteArray &array, uint16_t offset=0) |
Read a message from a ByteArray. More... | |
![]() | |
uint16_t | size () const |
Number bytes needed to serialize the message. More... | |
uint16_t | pack (Common::ByteArray &array, uint16_t offset=0) const |
Write the object on to a ByteArray so it can be sent over the network. More... | |
uint16_t | unpack (const Common::ByteArray &array, uint16_t offset=0) |
Read a message from a ByteArray. More... | |
Data Fields | |
uint8_t | start |
Offset to start reading entries from. More... | |
std::vector< Entry > | entries |
Vector containing the entries in the response. More... | |
Static Public Attributes | |
static constexpr uint16_t | min_size |
Minimum required data size for pack/unpack. | |
![]() | |
static constexpr uint16_t | min_size = sizeof(uint8_t) |
Minimum number of bytes required by this message. | |
This class the response for a GroupTable::READ_ENTRIES_CMD
command.
Definition at line 270 of file group_table.h.
|
inline |
Constructor.
[in] | _code | the response code for the response. |
[in] | _start | the offset for the entries in the response. |
[in] | _count | number of entries this response will contain. |
Definition at line 283 of file group_table.h.
References entries.
|
inline |
Write the object on to a ByteArray so it can be sent over the network.
The buffer passed in MUST have enough size to hold the serialized object, e.g.,
[in,out] | array | ByteArray reference to write the object to. |
[in] | offset | offset to start writing to. |
Definition at line 315 of file group_table.h.
References entries, HF_SERIALIZABLE_CHECK, HF::Protocol::Response::pack(), size(), start, and HF::Common::ByteArray::write().
|
inline |
Number bytes needed to serialize the message.
Definition at line 300 of file group_table.h.
References entries, and HF::Protocol::Response::size().
Referenced by pack().
|
inline |
Read a message from a ByteArray.
[in] | array | ByteArray reference to read the message from. |
[in] | offset | offset to start reading from. |
Definition at line 336 of file group_table.h.
References entries, HF_SERIALIZABLE_CHECK, HF::Core::GroupTable::Entry::min_size, min_size, HF::Common::ByteArray::read(), start, HF::Core::GroupTable::Entry::unpack(), and HF::Protocol::Response::unpack().
std::vector<Entry> HF::Core::GroupTable::ReadEntriesResponse::entries |
Vector containing the entries in the response.
Definition at line 274 of file group_table.h.
Referenced by pack(), ReadEntriesResponse(), size(), and unpack().
uint8_t HF::Core::GroupTable::ReadEntriesResponse::start |
Offset to start reading entries from.
Definition at line 272 of file group_table.h.