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

Represents the data type of a ZigBee cluster attribute. More...

#include <zcl.h>

Public Member Functions

 ZclDataType ()
 Default constructor with value = ZclNoData.
 
 ZclDataType (const ZclDataType &other)
 Copy constructor.
 
ZclDataTypeoperator= (ZclDataType &other)
 Copy assignment constructor.
 
 ZclDataType (uint8_t id, const QString &name, const QString &shortname, int length, char analogDiscrete)
 Constructor used by ZCLDB parser.
 
 ~ZclDataType ()
 Destructor.
 
uint8_t id () const
 Returns the data type identifier.
 
ZclDataTypeId_t id_t () const
 Returns the strong typed data type identifier.
 
const QString & name () const
 Returns the data type name.
 
const QString & shortname () const
 Returns the data type short name (bmp8, uint8, enum16, ...).
 
int length () const
 Returns the length of this data type in bytes (uint8 -> 1, uint32 = 4, ...).
 
bool isValid () const
 Returns true if this data type object has valid data.
 
bool isAnalog () const
 Returns true if this data type represents analog data.
 
bool isDiscrete () const
 Returns true if this data type represents discrete data.
 

Detailed Description

Represents the data type of a ZigBee cluster attribute.

Member Function Documentation

◆ id_t()

ZclDataTypeId_t deCONZ::ZclDataType::id_t ( ) const

Returns the strong typed data type identifier.

Since
v2.6.1

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