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

A strong typed ZCL cluster identifier. More...

#include <zcl.h>

Public Member Functions

constexpr ZclClusterId_t ()
 Default constructor, with value = 0.
 
constexpr ZclClusterId_t (quint16 id)
 Explicit constructor to init by value.
 
constexpr operator quint16 () const
 Explicit quint16 conversion operator, needs static_cast<quint16>().
 
template<class T >
 ZclClusterId_t (T)=delete
 Don't allow construction via implicit integer conversion.
 
constexpr bool operator== (ZclClusterId_t other) const
 Equal operator, requires strong type.
 
constexpr bool operator!= (ZclClusterId_t other) const
 Not equal operator, requires strong type.
 

Related Symbols

(Note that these are not member symbols.)

DECONZ_DLLSPEC QDataStream & operator<< (QDataStream &ds, ZclClusterId_t id)
 Writes ZclClusterId_t as quint16 to the QDataStream.
 
DECONZ_DLLSPEC QDataStream & operator>> (QDataStream &ds, ZclClusterId_t &id)
 Reades ZclClusterId_t as quint16 from the QDataStream.
 

Detailed Description

A strong typed ZCL cluster identifier.

See also
Zigbee Strong Types
Since
v2.6.1

This wrapper around quint16 data type as ZCL cluster 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: