QKnxInterfaceObjectPropertyDataType Class
The QKnxInterfaceObjectPropertyDataType class holds information about the data type of the properties of a KNX interface object. More...
Header: | #include <QKnxInterfaceObjectPropertyDataType> |
qmake: | QT += knx |
Public Types
enum class | Id { Control, Char, UnsignedChar, Int, UnsignedInt, …, Invalid } |
enum class | Unit { Array, Single } |
Public Functions
QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType &&other) | |
QKnxInterfaceObjectPropertyDataType(const QKnxInterfaceObjectPropertyDataType &o) | |
QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType::Id id, QKnxDatapointType::Type type = QKnxDatapointType::Type::Unknown, QKnxInterfaceObjectPropertyDataType::Unit unit = Unit::Single) | |
QKnxInterfaceObjectPropertyDataType() | |
QKnxInterfaceObjectPropertyDataType & | operator=(QKnxInterfaceObjectPropertyDataType &&other) |
QKnxInterfaceObjectPropertyDataType & | operator=(const QKnxInterfaceObjectPropertyDataType &o) |
~QKnxInterfaceObjectPropertyDataType() | |
QKnxDatapointType::Type | datapointType() const |
QKnxInterfaceObjectPropertyDataType::Id | id() const |
bool | isValid() const |
quint8 | size(bool read = false) const |
void | swap(QKnxInterfaceObjectPropertyDataType &other) |
QKnxInterfaceObjectPropertyDataType::Unit | unit() const |
bool | operator!=(const QKnxInterfaceObjectPropertyDataType &other) const |
bool | operator==(const QKnxInterfaceObjectPropertyDataType &other) const |
Static Public Members
QVector<QKnxInterfaceObjectPropertyDataType> | fromProperty(QKnxInterfaceObjectProperty property) |
quint8 | size(QKnxInterfaceObjectPropertyDataType::Id id, bool read = false) |
Detailed Description
A KNX interface object holds information about device functionality. This class represents the properties of interface objects, such as:
See also Qt KNX Device Management Classes.
Member Type Documentation
enum class QKnxInterfaceObjectPropertyDataType::Id
This enum holds the ID of an interface object property.
Constant | Value |
---|---|
QKnxInterfaceObjectPropertyDataType::Id::Control | 0x00 |
QKnxInterfaceObjectPropertyDataType::Id::Char | 0x01 |
QKnxInterfaceObjectPropertyDataType::Id::UnsignedChar | 0x02 |
QKnxInterfaceObjectPropertyDataType::Id::Int | 0x03 |
QKnxInterfaceObjectPropertyDataType::Id::UnsignedInt | 0x04 |
QKnxInterfaceObjectPropertyDataType::Id::KnxFloat | 0x05 |
QKnxInterfaceObjectPropertyDataType::Id::Date | 0x06 |
QKnxInterfaceObjectPropertyDataType::Id::Time | 0x07 |
QKnxInterfaceObjectPropertyDataType::Id::Long | 0x08 |
QKnxInterfaceObjectPropertyDataType::Id::UnsignedLong | 0x09 |
QKnxInterfaceObjectPropertyDataType::Id::Float | 0x0a |
QKnxInterfaceObjectPropertyDataType::Id::Double | 0x0b |
QKnxInterfaceObjectPropertyDataType::Id::CharBlock | 0x0c |
QKnxInterfaceObjectPropertyDataType::Id::PollGroupSettings | 0x0d |
QKnxInterfaceObjectPropertyDataType::Id::ShortCharBlock | 0x0e |
QKnxInterfaceObjectPropertyDataType::Id::DateTime | 0x0f |
QKnxInterfaceObjectPropertyDataType::Id::VariableLength | 0x10 |
QKnxInterfaceObjectPropertyDataType::Id::Generic01 | 0x11 |
QKnxInterfaceObjectPropertyDataType::Id::Generic02 | 0x12 |
QKnxInterfaceObjectPropertyDataType::Id::Generic03 | 0x13 |
QKnxInterfaceObjectPropertyDataType::Id::Generic04 | 0x14 |
QKnxInterfaceObjectPropertyDataType::Id::Generic05 | 0x15 |
QKnxInterfaceObjectPropertyDataType::Id::Generic06 | 0x16 |
QKnxInterfaceObjectPropertyDataType::Id::Generic07 | 0x17 |
QKnxInterfaceObjectPropertyDataType::Id::Generic08 | 0x18 |
QKnxInterfaceObjectPropertyDataType::Id::Generic09 | 0x19 |
QKnxInterfaceObjectPropertyDataType::Id::Generic10 | 0x1a |
QKnxInterfaceObjectPropertyDataType::Id::Generic11 | 0x1b |
QKnxInterfaceObjectPropertyDataType::Id::Generic12 | 0x1c |
QKnxInterfaceObjectPropertyDataType::Id::Generic13 | 0x1d |
QKnxInterfaceObjectPropertyDataType::Id::Generic14 | 0x1e |
QKnxInterfaceObjectPropertyDataType::Id::Generic15 | 0x1f |
QKnxInterfaceObjectPropertyDataType::Id::Generic16 | 0x20 |
QKnxInterfaceObjectPropertyDataType::Id::Generic17 | 0x21 |
QKnxInterfaceObjectPropertyDataType::Id::Generic18 | 0x22 |
QKnxInterfaceObjectPropertyDataType::Id::Generic19 | 0x23 |
QKnxInterfaceObjectPropertyDataType::Id::Generic20 | 0x24 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved01 | 0x25 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved02 | 0x26 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved03 | 0x27 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved04 | 0x28 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved05 | 0x29 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved06 | 0x2a |
QKnxInterfaceObjectPropertyDataType::Id::Reserved07 | 0x2b |
QKnxInterfaceObjectPropertyDataType::Id::Reserved08 | 0x2c |
QKnxInterfaceObjectPropertyDataType::Id::Reserved09 | 0x2d |
QKnxInterfaceObjectPropertyDataType::Id::Reserved10 | 0x2e |
QKnxInterfaceObjectPropertyDataType::Id::Utf8 | 0x2f |
QKnxInterfaceObjectPropertyDataType::Id::Version | 0x30 |
QKnxInterfaceObjectPropertyDataType::Id::AlarmInfo | 0x31 |
QKnxInterfaceObjectPropertyDataType::Id::BinaryInformation | 0x32 |
QKnxInterfaceObjectPropertyDataType::Id::Bitset8 | 0x33 |
QKnxInterfaceObjectPropertyDataType::Id::Bitset16 | 0x34 |
QKnxInterfaceObjectPropertyDataType::Id::Enum8 | 0x35 |
QKnxInterfaceObjectPropertyDataType::Id::Scaling | 0x36 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved11 | 0x37 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved12 | 0x38 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved13 | 0x39 |
QKnxInterfaceObjectPropertyDataType::Id::Reserved14 | 0x3a |
QKnxInterfaceObjectPropertyDataType::Id::Reserved15 | 0x3b |
QKnxInterfaceObjectPropertyDataType::Id::NeVl | 0x3c |
QKnxInterfaceObjectPropertyDataType::Id::NeFl | 0x3d |
QKnxInterfaceObjectPropertyDataType::Id::Function | 0x3e |
QKnxInterfaceObjectPropertyDataType::Id::Escape | 0x3f |
QKnxInterfaceObjectPropertyDataType::Id::Invalid | 0x40 |
enum class QKnxInterfaceObjectPropertyDataType::Unit
This enum holds the unit of an interface object property.
Constant | Value | Description |
---|---|---|
QKnxInterfaceObjectPropertyDataType::Unit::Array | 0 | An array of values. |
QKnxInterfaceObjectPropertyDataType::Unit::Single | 1 | A single value. |
Member Function Documentation
QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType &&other)
Move-constructs an object instance, making it point to the same object that other was pointing to.
QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType(const QKnxInterfaceObjectPropertyDataType &o)
Creates the interface object property data type o.
QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType::Id id, QKnxDatapointType::Type type = QKnxDatapointType::Type::Unknown, QKnxInterfaceObjectPropertyDataType::Unit unit = Unit::Single)
Creates a KNX interface object property data type with the ID id, type type, and unit unit.
QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType()
Creates a KNX interface object property data type.
QKnxInterfaceObjectPropertyDataType &QKnxInterfaceObjectPropertyDataType::operator=(QKnxInterfaceObjectPropertyDataType &&other)
Move-constructs an object instance, making it point to the same object that other was pointing to.
QKnxInterfaceObjectPropertyDataType &QKnxInterfaceObjectPropertyDataType::operator=(const QKnxInterfaceObjectPropertyDataType &o)
Assigns o to this object.
QKnxInterfaceObjectPropertyDataType::~QKnxInterfaceObjectPropertyDataType()
Destroys a KNX interface object property data type.
QKnxDatapointType::Type QKnxInterfaceObjectPropertyDataType::datapointType() const
Returns the datapoint type of a KNX interface object property data type.
See also QKnxDatapointType::Type.
[static]
QVector<QKnxInterfaceObjectPropertyDataType> QKnxInterfaceObjectPropertyDataType::fromProperty(QKnxInterfaceObjectProperty property)
Creates a KNX interface object property data type from the property property.
QKnxInterfaceObjectPropertyDataType::Id QKnxInterfaceObjectPropertyDataType::id() const
Returns the ID of the KNX interface object property data type.
bool QKnxInterfaceObjectPropertyDataType::isValid() const
Returns true
if this a valid KNX interface object property data type; otherwise returns false
.
quint8 QKnxInterfaceObjectPropertyDataType::size(bool read = false) const
Returns the size of the KNX interface object property data type.
If read is false
, the property is a write property. Only the object property data type PDT_CONTROL
, which is used as type indication for properties controlling the standard load state machine, can be either a read property or a write property.
[static]
quint8 QKnxInterfaceObjectPropertyDataType::size(QKnxInterfaceObjectPropertyDataType::Id id, bool read = false)
Returns the size of the KNX interface object property data type with the ID id.
If read is false
, the property is a write property. Only the object property data type PDT_CONTROL
, which is used as type indication for properties controlling the standard load state machine, can be either a read property or a write property.
void QKnxInterfaceObjectPropertyDataType::swap(QKnxInterfaceObjectPropertyDataType &other)
Swaps the interface object property data type other with this data type.
QKnxInterfaceObjectPropertyDataType::Unit QKnxInterfaceObjectPropertyDataType::unit() const
Returns the unit of a KNX interface object property data type.
bool QKnxInterfaceObjectPropertyDataType::operator!=(const QKnxInterfaceObjectPropertyDataType &other) const
Returns true
if this object and the given other are not equal; otherwise returns false
.
bool QKnxInterfaceObjectPropertyDataType::operator==(const QKnxInterfaceObjectPropertyDataType &other) const
Returns true
if this object and the given other are equal; otherwise returns false
.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.