![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
This class represents a periodic rule for attribute reporting. More...
#include <attribute_reporting.h>
Public Member Functions | |
Rule (uint32_t _interval=0) | |
Constructor. More... | |
void | add (const Entry &entry) |
Add the given entry to rule. More... | |
void | clear () |
Remove all entries in this rule. | |
uint16_t | entries_count () |
Number of entries present in this rule. More... | |
iterator | begin () |
Get an iterator to the start of the entries in this rule. More... | |
iterator | end () |
Get an iterator to the end of the entries in this rule. More... | |
const_iterator | cbegin () const |
Get a constant iterator to the start of the entries in this rule. More... | |
const_iterator | cend () const |
Get constant iterator to the end of the entries in this rule. 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 | |
uint32_t | interval |
Attribute indicating the time interval rule needs to be activated. | |
uint32_t | last_time |
Attribute indicating the last time rule was activated. | |
![]() | |
Reference | report |
Report reference this rule generates. | |
Protocol::Address | destination |
Device/unit that will receive the report. | |
Static Public Attributes | |
static constexpr uint16_t | min_size |
Minimum pack/unpack required data size. | |
![]() | |
static constexpr uint16_t | min_size |
Minimum pack/unpack required data size. | |
Protected Attributes | |
Container | entries |
Container for the entries of the periodic rule. | |
Additional Inherited Members | |
![]() | |
Rule (Type type) | |
Constructor. More... | |
This class represents a periodic rule for attribute reporting.
Definition at line 235 of file attribute_reporting.h.
|
inline |
Constructor.
[in] | _interval | periodic rule interval value. |
Definition at line 254 of file attribute_reporting.h.
|
inline |
Add the given entry
to rule.
[in] | entry | reference to the entry to add to this rule. |
Definition at line 275 of file attribute_reporting.h.
References entries.
|
inline |
Get an iterator to the start of the entries in this rule.
Definition at line 304 of file attribute_reporting.h.
References entries.
|
inline |
Get a constant iterator to the start of the entries in this rule.
Definition at line 324 of file attribute_reporting.h.
References entries.
|
inline |
Get constant iterator to the end of the entries in this rule.
Definition at line 334 of file attribute_reporting.h.
References entries.
|
inline |
Get an iterator to the end of the entries in this rule.
Definition at line 314 of file attribute_reporting.h.
References entries.
|
inline |
Number of entries present in this rule.
Definition at line 293 of file attribute_reporting.h.
References entries.