The QKnxInterfaceObjectPropertyDataType class holds information about the data type of the properties of a KNX interface object. 更多...
头: | #include <QKnxInterfaceObjectPropertyDataType> |
qmake: | QT += knx |
enum class | Id { Control, Char, UnsignedChar, Int, UnsignedInt, …, Invalid } |
enum class | Unit { Array, Single } |
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 |
QVector<QKnxInterfaceObjectPropertyDataType> | fromProperty (QKnxInterfaceObjectProperty property ) |
quint8 | size (QKnxInterfaceObjectPropertyDataType::Id id , bool read = false) |
A KNX interface object holds information about device functionality. This class represents the properties of interface objects, such as:
另请参阅 Qt KNX Device Management Classes .
This enum holds the ID of an interface object property.
常量 | 值 |
---|---|
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
|
This enum holds the unit of an interface object property.
常量 | 值 | 描述 |
---|---|---|
QKnxInterfaceObjectPropertyDataType::Unit::Array
|
0
|
An array of values. |
QKnxInterfaceObjectPropertyDataType::Unit::Single
|
1
|
A single value. |
Move-constructs an object instance, making it point to the same object that other 所指向的。
Creates the interface object property data type o .
Creates a KNX interface object property data type with the ID id , type type , and unit unit .
Creates a KNX interface object property data type.
Move-constructs an object instance, making it point to the same object that other 所指向的。
赋值 o 到此对象。
Destroys a KNX interface object property data type.
Returns the datapoint type of a KNX interface object property data type.
另请参阅 QKnxDatapointType::Type .
[static]
QVector
<
QKnxInterfaceObjectPropertyDataType
> QKnxInterfaceObjectPropertyDataType::
fromProperty
(
QKnxInterfaceObjectProperty
property
)
Creates a KNX interface object property data type from the property property .
Returns the ID of the KNX interface object property data type.
返回
true
if this a valid KNX interface object property data type; otherwise returns
false
.
Returns the size of the KNX interface object property data type.
若
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 .
若
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.
Swaps the interface object property data type other with this data type.
Returns the unit of a KNX interface object property data type.
返回
true
if this object and the given
other
不相等;则返回
false
.
返回
true
if this object and the given
other
相等;否则返回
false
.