QKnxElectricalEnergy Class
The QKnxElectricalEnergy class is a datapoint type for electrical energy. More...
Header: | #include <QKnxElectricalEnergy> |
qmake: | QT += knx |
Inherits: | QKnxFixedSizeDatapointType |
Public Functions
QKnxElectricalEnergy(qint64 value) | |
QKnxElectricalEnergy() | |
bool | setValue(qint64 value) |
qint64 | value() const |
Reimplemented Public Functions
virtual bool | isValid() const override |
Protected Functions
QKnxElectricalEnergy(int subType, qint64 value) |
Detailed Description
This is a fixed size datapoint type with the length of 8 bytes.
It is a base class for the following classes:
QKnxActiveEnergyV64
- Active energy in Wh.QKnxApparentEnergyV64
- Active energy in VAh.QKnxReactiveEnergyV64
- Active energy in VARh.
The range for the value is from -9 223 372 036 854 775 808
to 9 223 372 036 854 775 807
.
See also QKnxDatapointType and Qt KNX Datapoint Type Classes.
Member Function Documentation
[protected]
QKnxElectricalEnergy::QKnxElectricalEnergy(int subType, qint64 value)
Creates a fixed size datapoint with the subtype subType and the value value.
QKnxElectricalEnergy::QKnxElectricalEnergy(qint64 value)
Creates a fixed size datapoint type with the value value.
QKnxElectricalEnergy::QKnxElectricalEnergy()
Creates a fixed size datapoint type with the value set to 0
.
[override virtual]
bool QKnxElectricalEnergy::isValid() const
Reimplements: QKnxDatapointType::isValid() const.
bool QKnxElectricalEnergy::setValue(qint64 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().
qint64 QKnxElectricalEnergy::value() const
Returns the value stored in the datapoint type.
See also setValue().
© 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.