deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
deCONZ::ZclCommandId_t Class Reference

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.
 

Detailed Description

A strong typed ZCL command identifier.

See also
Zigbee Strong Types
Since
v2.6.1

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.


The documentation for this class was generated from the following file: