1// Copyright (C) 2015 basysKom GmbH, opensource@basyskom.com
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QOPCUADOUBLECOMPLEXNUMBER_H
5#define QOPCUADOUBLECOMPLEXNUMBER_H
6
7#include <QtOpcUa/qopcuaglobal.h>
8
9#include <QtCore/qshareddata.h>
10#include <QtCore/qvariant.h>
11
12QT_BEGIN_NAMESPACE
13
14class QOpcUaDoubleComplexNumberData;
15class Q_OPCUA_EXPORT QOpcUaDoubleComplexNumber
16{
17public:
18 QOpcUaDoubleComplexNumber();
19 QOpcUaDoubleComplexNumber(const QOpcUaDoubleComplexNumber &);
20 QOpcUaDoubleComplexNumber(double real, double imaginary);
21 QOpcUaDoubleComplexNumber &operator=(const QOpcUaDoubleComplexNumber &);
22 bool operator==(const QOpcUaDoubleComplexNumber &rhs) const;
23 operator QVariant() const;
24 ~QOpcUaDoubleComplexNumber();
25
26 double real() const;
27 void setReal(double real);
28
29 double imaginary() const;
30 void setImaginary(double imaginary);
31
32private:
33 QSharedDataPointer<QOpcUaDoubleComplexNumberData> data;
34};
35
36QT_END_NAMESPACE
37
38Q_DECLARE_METATYPE(QOpcUaDoubleComplexNumber)
39
40#endif // QOPCUADOUBLECOMPLEXNUMBER_H
41

source code of qtopcua/src/opcua/client/qopcuadoublecomplexnumber.h