1// Copyright (C) 2024 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 NODEIDGENERATOR_H
5#define NODEIDGENERATOR_H
6
7#include <QHash>
8#include <QString>
9
10class NodeIdGenerator
11{
12public:
13 NodeIdGenerator() = default;
14
15 bool parseNodeIds(const QString &name, const QString &path);
16
17 bool hasNodeIds() const;
18
19 bool generateNodeIdsHeader(const QString &prefix, const QString &path, const QString &header);
20
21private:
22 class NodeId {
23 public:
24 QString name;
25 QString value;
26 QString type;
27 };
28
29 QHash<QString, QList<NodeId>> m_nodeIds;
30};
31
32#endif // NODEIDGENERATOR_H
33

source code of qtopcua/tools/datatypecodegenerator/nodeidgenerator.h