1 | // Copyright (C) 2017 Ford Motor Company |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef CPPCODEGENERATOR_H |
5 | #define CPPCODEGENERATOR_H |
6 | |
7 | QT_BEGIN_NAMESPACE |
8 | class QJsonArray; |
9 | class QIODevice; |
10 | |
11 | class CppCodeGenerator |
12 | { |
13 | public: |
14 | CppCodeGenerator(QIODevice *outputDevice); |
15 | |
16 | void generate(const QJsonArray &classList, bool alwaysGenerateClass = false); |
17 | |
18 | private: |
19 | QIODevice *m_outputDevice; |
20 | }; |
21 | |
22 | QT_END_NAMESPACE |
23 | |
24 | #endif // CPPCODEGENERATOR_H |
25 | |