1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the QtDataVisualization API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13
14#ifndef ENUMTOSTRINGMAP_P_H
15#define ENUMTOSTRINGMAP_P_H
16
17//#define VERBOSE_STATE_STORE
18
19#ifdef VERBOSE_STATE_STORE
20
21#include <QtGui/qopengl.h>
22#include <QMap>
23#include <QString>
24#include <private/qglobal_p.h>
25
26class EnumToStringMap
27{
28public:
29 static EnumToStringMap *newInstance();
30 static void deleteInstance();
31 QString lookUp(const GLuint value) const;
32
33private:
34 EnumToStringMap();
35 QMap<int, QString> m_map;
36 QString m_unknown;
37};
38#endif
39#endif
40

source code of qtdatavis3d/src/datavisualizationqml/enumtostringmap_p.h