deCONZ C++ API v2.6.1
|
A strong typed Zigbee manufacturer code. More...
#include <zcl.h>
Public Member Functions | |
constexpr | ManufacturerCode_t () |
Default constructor, with value = 0. | |
constexpr | ManufacturerCode_t (quint16 id) |
Explicit constructor to init by value. | |
constexpr | operator quint16 () const |
Explicit quint16 conversion operator, needs static_cast<quint16>() . | |
template<class T > | |
ManufacturerCode_t (T)=delete | |
Don't allow construction via implicit integer conversion. | |
constexpr bool | operator== (ManufacturerCode_t other) const |
Equal operator, requires strong type. | |
constexpr bool | operator!= (ManufacturerCode_t other) const |
Not equal operator, requires strong type. | |
Related Symbols | |
(Note that these are not member symbols.) | |
DECONZ_DLLSPEC QDataStream & | operator<< (QDataStream &ds, ManufacturerCode_t mfcode) |
Writes ManufacturerCode_t as quint16 to the QDataStream. | |
DECONZ_DLLSPEC QDataStream & | operator>> (QDataStream &ds, ManufacturerCode_t &mfcode) |
Reades ManufacturerCode_t as quint16 from the QDataStream. | |
A strong typed Zigbee manufacturer code.
This wrapper around quint16 data type as Zigbee manufacturer codes 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.