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 QOPCUAELEMENTOPERAND_H
5#define QOPCUAELEMENTOPERAND_H
6
7#include <QtOpcUa/qopcuaglobal.h>
8
9#include <QtCore/qshareddata.h>
10#include <QtCore/qvariant.h>
11
12QT_BEGIN_NAMESPACE
13
14// OPC-UA part 4, 7.4.4.2
15class QOpcUaElementOperandData;
16class Q_OPCUA_EXPORT QOpcUaElementOperand
17{
18public:
19 QOpcUaElementOperand();
20 QOpcUaElementOperand(const QOpcUaElementOperand &);
21 QOpcUaElementOperand(quint32 index);
22 QOpcUaElementOperand &operator=(const QOpcUaElementOperand &);
23 operator QVariant() const;
24 ~QOpcUaElementOperand();
25
26 quint32 index() const;
27 void setIndex(quint32 index);
28
29private:
30 QSharedDataPointer<QOpcUaElementOperandData> data;
31};
32
33QT_END_NAMESPACE
34
35Q_DECLARE_METATYPE(QOpcUaElementOperand)
36
37#endif // QOPCUAELEMENTOPERAND_H
38

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