deCONZ C++ API v2.6.1
|
A strong typed ZCL command identifier. More...
#include <zcl.h>
Public Member Functions | |
constexpr | ZclCommandId_t () |
Default constructor, with value = 0. | |
constexpr | ZclCommandId_t (quint8 id) |
Explicit constructor to init by value. | |
constexpr | operator quint8 () const |
Explicit quint8 conversion operator, needs static_cast<quint8>() . | |
template<class T > | |
ZclCommandId_t (T)=delete | |
Don't allow construction via implicit integer conversion. | |
constexpr bool | operator== (ZclCommandId_t other) const |
Equal operator, requires strong type. | |
constexpr bool | operator!= (ZclCommandId_t other) const |
Not equal operator, requires strong type. | |
Related Symbols | |
(Note that these are not member symbols.) | |
DECONZ_DLLSPEC QDataStream & | operator<< (QDataStream &ds, ZclCommandId_t id) |
Writes ZclCommandId_t as quint8 to the QDataStream. | |
DECONZ_DLLSPEC QDataStream & | operator>> (QDataStream &ds, ZclCommandId_t &id) |
Reades ZclCommandId_t as quint8 from the QDataStream. | |
A strong typed ZCL command identifier.
This wrapper around quint8 data type as ZCL command identifier for code correctness. It helps to prevent common hard to catch programming errors. The class is very strict and enforces a type safe programming style.