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

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.
 

Detailed Description

A strong typed Zigbee manufacturer code.

See also
Zigbee Strong Types
Since
v2.6.1

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.


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