QKnx4ByteSignedValue Class

The QKnx4ByteSignedValue class is a datapoint type with a 4-byte signed value. More...

Header: #include <QKnx4ByteSignedValue>
qmake: QT += knx
Inherits: QKnxFixedSizeDatapointType

Public Functions

QKnx4ByteSignedValue()
QKnx4ByteSignedValue(qint32 value)
bool setValue(qint32 value)
qint32 value() const

Reimplemented Public Functions

virtual bool isValid() const override

Protected Functions

QKnx4ByteSignedValue(int subType, qint32 value)

Additional Inherited Members

Detailed Description

The QKnx4ByteSignedValue class is a datapoint type with a 4-byte signed value.

This is a fixed size datapoint type with the length of 4 bytes.

Integer values from -2 147 483 648 to -2 147 483 647 can be encoded in this datapoint type.

This class is a base class for the following datapoint types:

  • QKnxActiveEnergy - Active energy in Wh.
  • QKnxActiveEnergykWh - Active energy in kWh.
  • QKnxApparentEnergy - Active energy in VAh.
  • QKnxApparentEnergykVAh - Active energy in kVAh.
  • QKnxFlowRateCubicMeterPerHour - Flow rate in cubic meters per hour (m3/h).
  • QKnxLongDeltaTimeSec - Active energy in seconds.
  • QKnxReactiveEnergy - Active energy in VARh.
  • QKnxReactiveEnergykVARh - Active energy in kVARh.
  • QKnxValue4Count - Counter pulses (signed).

See also QKnxDatapointType and Qt KNX Datapoint Type Classes.

Member Function Documentation

QKnx4ByteSignedValue::QKnx4ByteSignedValue()

Creates a fixed size datapoint type with the value set to 0.

QKnx4ByteSignedValue::QKnx4ByteSignedValue(qint32 value)

Creates a fixed size datapoint type with the value value.

[protected] QKnx4ByteSignedValue::QKnx4ByteSignedValue(int subType, qint32 value)

Creates a fixed size datapoint type with the subtype subType and value value.

[override virtual] bool QKnx4ByteSignedValue::isValid() const

Reimplemented from QKnxDatapointType::isValid().

bool QKnx4ByteSignedValue::setValue(qint32 value)

Sets the value of the datapoint type to value.

If the value is outside the allowed range, returns false and does not set the value.

See also value().

qint32 QKnx4ByteSignedValue::value() const

Returns the value stored in the datapoint type.

See also setValue().

© 2018 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.