ZCL library
4.3
ZCL library to manage a Zigbee network
|
This Class defines the Data Type of the attribute. More...
#include <DataType.h>
Public Member Functions | |
bool | operator== (const DataType &rhs) const |
Redefinition of operators == . | |
bool | operator!= (const DataType &rhs) const |
Redefinition of operators != . | |
bool | operator< (const DataType &rhs) const |
Redefinition of operators < . | |
bool | operator<= (const DataType &rhs) const |
Redefinition of operators <= . | |
bool | operator> (const DataType &rhs) const |
Redefinition of operators > . | |
bool | operator>= (const DataType &rhs) const |
Redefinition of operators >= . | |
byte | toByte () const |
Return the length in bytes of this data type. | |
bool | isAnalog () const |
Return true if this data type is Analog. | |
bool | isDiscret () const |
Return true if this data type is Discret. | |
bool | isBoolean () const |
Return true if this data type is Boolean. | |
bool | isNumber () const |
Return true if this data type is Number. | |
bool | isString () const |
Return true if this data type is Character String or Octet String. | |
bool | isLongString () const |
Return true if this data type is Long Character String or Long Octet String. | |
bool | isSigned () const |
Return true if this data type is Signed. | |
int | length () const |
Return the length in bytes of this data type. | |
const char * | name () const |
Return the name of this data type. | |
Static Public Member Functions | |
static const DataType & | fromByte (byte value) |
Return the DataType corresponding to the ordinal value. | |
static const DataType *const * | values (int &size) |
Return an array of DataType pointers. | |
Static Public Attributes | |
static DataType | NoData |
Null : No Data. | |
static DataType | Data8bits |
General data : 8 bits. | |
static DataType | Data16bits |
General data : 16 bits. | |
static DataType | Data24bits |
General data : 24 bits. | |
static DataType | Data32bits |
General data : 32 bits. | |
static DataType | Data40bits |
General data : 40 bits. | |
static DataType | Data48bits |
General data : 48 bits. | |
static DataType | Data56bits |
General data : 56 bits. | |
static DataType | Data64bits |
General data : 64 bits. | |
static DataType | Boolean |
Logical : Boolean. | |
static DataType | Bitmap8bits |
Bitmap : 8 bits. | |
static DataType | Bitmap16bits |
Bitmap : 16 bits. | |
static DataType | Bitmap24bits |
Bitmap : 24 bits. | |
static DataType | Bitmap32bits |
Bitmap : 32 bits. | |
static DataType | Bitmap40bits |
Bitmap : 40 bits. | |
static DataType | Bitmap48bits |
Bitmap : 48 bits. | |
static DataType | Bitmap56bits |
Bitmap : 56 bits. | |
static DataType | Bitmap64bits |
Bitmap : 64 bits. | |
static DataType | Unsigned8bits |
Unsigned integer : 8 bits. | |
static DataType | Unsigned16bits |
Unsigned integer : 16 bits. | |
static DataType | Unsigned24bits |
Unsigned integer : 24 bits. | |
static DataType | Unsigned32bits |
Unsigned integer : 32 bits. | |
static DataType | Unsigned40bits |
Unsigned integer : 40 bits. | |
static DataType | Unsigned48bits |
Unsigned integer : 48 bits. | |
static DataType | Unsigned56bits |
Unsigned integer : 56 bits. | |
static DataType | Unsigned64bits |
Unsigned integer : 64 bits. | |
static DataType | Signed8bits |
Signed integer : 8 bits. | |
static DataType | Signed16bits |
Signed integer : 16 bits. | |
static DataType | Signed24bits |
Signed integer : 24 bits. | |
static DataType | Signed32bits |
Signed integer : 32 bits. | |
static DataType | Signed40bits |
Signed integer : 40 bits. | |
static DataType | Signed48bits |
Signed integer : 48 bits. | |
static DataType | Signed56bits |
Signed integer : 56 bits. | |
static DataType | Signed64bits |
Signed integer : 64 bits. | |
static DataType | Enumeration8bits |
Enumeration : 8 bits. | |
static DataType | Enumeration16bits |
Enumeration : 16 bits. | |
static DataType | SemiPrecision |
Floating point : semi-precision. | |
static DataType | SinglePrecision |
Floating point : single precision. | |
static DataType | DoublePrecision |
Floating point : double precision. | |
static DataType | OctetString |
String : Octet String (length defined in first byte) | |
static DataType | CharacterString |
String : Character String (length defined in first byte) | |
static DataType | LongOctetString |
string : Long Octet String (length defined in first two bytes) | |
static DataType | LongCharString |
string : Long Character String (length defined in first two bytes) | |
static DataType | ArrayOrdered |
Ordered sequence : Array. | |
static DataType | StructureOrdered |
Ordered sequence : Structure. | |
static DataType | SetCollection |
Collection : Set. | |
static DataType | BagCollection |
Collection : Bag. | |
static DataType | TimeOfDay |
Time : time of day. | |
static DataType | DateOfDay |
Time : date of day. | |
static DataType | UtcTime |
Time : UTC time. | |
static DataType | ClusterId |
Identifier : Cluster ID. | |
static DataType | AttributeId |
Identifier : Attribute ID. | |
static DataType | BacNetOid |
Identifier : BACnet OID. | |
static DataType | IeeeAddress |
Miscellaneous : IEEE Address. | |
static DataType | SecurityKey128bits |
Miscellaneous : Security Key 128 bits. | |
static DataType | Unknown |
Unknown. | |
Friends | |
ZCL_EXPORT friend bool | operator== (DataTypeValue lvalue, const DataType &rhs) |
Redefinition of operators == . | |
ZCL_EXPORT friend bool | operator== (const DataType &lhs, DataTypeValue rvalue) |
Redefinition of operators == . | |
ZCL_EXPORT friend bool | operator!= (DataTypeValue lvalue, const DataType &rhs) |
Redefinition of operators != . | |
ZCL_EXPORT friend bool | operator!= (const DataType &lhs, DataTypeValue rvalue) |
Redefinition of operators != . | |
ZCL_EXPORT friend bool | operator< (DataTypeValue lvalue, const DataType &rhs) |
Redefinition of operators < . | |
ZCL_EXPORT friend bool | operator< (const DataType &lhs, DataTypeValue rvalue) |
Redefinition of operators < . | |
ZCL_EXPORT friend bool | operator> (DataTypeValue lvalue, const DataType &rhs) |
Redefinition of operators > . | |
ZCL_EXPORT friend bool | operator> (const DataType &lhs, DataTypeValue rvalue) |
Redefinition of operators > . | |
ZCL_EXPORT friend bool | operator<= (DataTypeValue lvalue, const DataType &rhs) |
Redefinition of operators <= . | |
ZCL_EXPORT friend bool | operator<= (const DataType &lhs, DataTypeValue rvalue) |
Redefinition of operators <= . | |
ZCL_EXPORT friend bool | operator>= (DataTypeValue lvalue, const DataType &rhs) |
Redefinition of operators >= . | |
ZCL_EXPORT friend bool | operator>= (const DataType &lhs, DataTypeValue rvalue) |
Redefinition of operators >= . |
This Class defines the Data Type of the attribute.
static const DataType& DataType::fromByte | ( | byte | value | ) | [static] |
bool DataType::isAnalog | ( | ) | const |
Return true if this data type is Analog.
bool DataType::isBoolean | ( | ) | const |
Return true if this data type is Boolean.
bool DataType::isDiscret | ( | ) | const |
Return true if this data type is Discret.
bool DataType::isLongString | ( | ) | const |
Return true if this data type is Long Character String or Long Octet String.
bool DataType::isNumber | ( | ) | const |
Return true if this data type is Number.
bool DataType::isSigned | ( | ) | const |
Return true if this data type is Signed.
bool DataType::isString | ( | ) | const |
Return true if this data type is Character String or Octet String.
int DataType::length | ( | ) | const |
Return the length in bytes of this data type.
const char* DataType::name | ( | ) | const |
Return the name of this data type.
byte DataType::toByte | ( | ) | const |
Return the length in bytes of this data type.
static const DataType* const* DataType::values | ( | int & | size | ) | [static] |
DataType DataType::ArrayOrdered [static] |
Ordered sequence : Array.
DataType DataType::AttributeId [static] |
Identifier : Attribute ID.
DataType DataType::BacNetOid [static] |
Identifier : BACnet OID.
A Data Communication Protocol for Building Automation and Control Networks.
DataType DataType::BagCollection [static] |
Collection : Bag.
DataType DataType::Bitmap16bits [static] |
Bitmap : 16 bits.
DataType DataType::Bitmap24bits [static] |
Bitmap : 24 bits.
DataType DataType::Bitmap32bits [static] |
Bitmap : 32 bits.
DataType DataType::Bitmap40bits [static] |
Bitmap : 40 bits.
DataType DataType::Bitmap48bits [static] |
Bitmap : 48 bits.
DataType DataType::Bitmap56bits [static] |
Bitmap : 56 bits.
DataType DataType::Bitmap64bits [static] |
Bitmap : 64 bits.
DataType DataType::Bitmap8bits [static] |
Bitmap : 8 bits.
DataType DataType::Boolean [static] |
Logical : Boolean.
DataType DataType::CharacterString [static] |
String : Character String (length defined in first byte)
DataType DataType::ClusterId [static] |
Identifier : Cluster ID.
DataType DataType::Data16bits [static] |
General data : 16 bits.
DataType DataType::Data24bits [static] |
General data : 24 bits.
DataType DataType::Data32bits [static] |
General data : 32 bits.
DataType DataType::Data40bits [static] |
General data : 40 bits.
DataType DataType::Data48bits [static] |
General data : 48 bits.
DataType DataType::Data56bits [static] |
General data : 56 bits.
DataType DataType::Data64bits [static] |
General data : 64 bits.
DataType DataType::Data8bits [static] |
General data : 8 bits.
DataType DataType::DateOfDay [static] |
Time : date of day.
DataType DataType::DoublePrecision [static] |
Floating point : double precision.
DataType DataType::Enumeration16bits [static] |
Enumeration : 16 bits.
DataType DataType::Enumeration8bits [static] |
Enumeration : 8 bits.
DataType DataType::IeeeAddress [static] |
Miscellaneous : IEEE Address.
DataType DataType::LongCharString [static] |
string : Long Character String (length defined in first two bytes)
DataType DataType::LongOctetString [static] |
string : Long Octet String (length defined in first two bytes)
DataType DataType::NoData [static] |
Null : No Data.
DataType DataType::OctetString [static] |
String : Octet String (length defined in first byte)
DataType DataType::SecurityKey128bits [static] |
Miscellaneous : Security Key 128 bits.
DataType DataType::SemiPrecision [static] |
Floating point : semi-precision.
DataType DataType::SetCollection [static] |
Collection : Set.
DataType DataType::Signed16bits [static] |
Signed integer : 16 bits.
DataType DataType::Signed24bits [static] |
Signed integer : 24 bits.
DataType DataType::Signed32bits [static] |
Signed integer : 32 bits.
DataType DataType::Signed40bits [static] |
Signed integer : 40 bits.
DataType DataType::Signed48bits [static] |
Signed integer : 48 bits.
DataType DataType::Signed56bits [static] |
Signed integer : 56 bits.
DataType DataType::Signed64bits [static] |
Signed integer : 64 bits.
DataType DataType::Signed8bits [static] |
Signed integer : 8 bits.
DataType DataType::SinglePrecision [static] |
Floating point : single precision.
DataType DataType::StructureOrdered [static] |
Ordered sequence : Structure.
DataType DataType::TimeOfDay [static] |
Time : time of day.
DataType DataType::Unknown [static] |
Unknown.
DataType DataType::Unsigned16bits [static] |
Unsigned integer : 16 bits.
DataType DataType::Unsigned24bits [static] |
Unsigned integer : 24 bits.
DataType DataType::Unsigned32bits [static] |
Unsigned integer : 32 bits.
DataType DataType::Unsigned40bits [static] |
Unsigned integer : 40 bits.
DataType DataType::Unsigned48bits [static] |
Unsigned integer : 48 bits.
DataType DataType::Unsigned56bits [static] |
Unsigned integer : 56 bits.
DataType DataType::Unsigned64bits [static] |
Unsigned integer : 64 bits.
DataType DataType::Unsigned8bits [static] |
Unsigned integer : 8 bits.
DataType DataType::UtcTime [static] |
Time : UTC time.