QOpcUaDoubleComplexNumber Class

OPC UA DoubleComplexNumber 类型。更多

头文件: #include <QOpcUaDoubleComplexNumber>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

公共函数

QOpcUaDoubleComplexNumber()
QOpcUaDoubleComplexNumber(double real, double imaginary)
double imaginary() const
double real() const
void setImaginary(double imaginary)
void setReal(double real)
QVariant operator QVariant() const
QOpcUaDoubleComplexNumber &operator=(const QOpcUaDoubleComplexNumber &rhs)
bool operator==(const QOpcUaDoubleComplexNumber &rhs) const

详细说明

DoubleComplexNumberType 定义于 OPC UA 1.05 第 8 部分 5.6.5。它存储双精度复数。

成员函数文档

QOpcUaDoubleComplexNumber::QOpcUaDoubleComplexNumber()

默认构造一个未设置参数的双复数。

QOpcUaDoubleComplexNumber::QOpcUaDoubleComplexNumber(double real, double imaginary)

构造一个双复数,实部real ,虚部imaginary

double QOpcUaDoubleComplexNumber::imaginary() const

返回复数的虚部。

另请参见 setImaginary().

double QOpcUaDoubleComplexNumber::real() const

返回复数的实部。

另请参见 setReal().

void QOpcUaDoubleComplexNumber::setImaginary(double imaginary)

将复数的虚部设置为imaginary

另请参见 imaginary() 。

void QOpcUaDoubleComplexNumber::setReal(double real)

将复数的实部设置为real

另请参见 real() 。

QVariant QOpcUaDoubleComplexNumber::operator QVariant() const

将此复数转换为QVariant

QOpcUaDoubleComplexNumber &QOpcUaDoubleComplexNumber::operator=(const QOpcUaDoubleComplexNumber &rhs)

设置rhs 中的值。

bool QOpcUaDoubleComplexNumber::operator==(const QOpcUaDoubleComplexNumber &rhs) const

如果该复数的值与rhs 相同,则返回true

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