aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/test_generator/dummygenerator.h
blob: d17206809134925b0401ee8c450b5e06f0d29b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef DUMMYGENERATOR_H
#define DUMMYGENERATOR_H

#include "generator.h"

class GENRUNNER_API DummyGenerator : public Generator
{
public:
    DummyGenerator() {}
    ~DummyGenerator() {}
    bool doSetup(const QMap<QString, QString>& args);
    const char* name() const { return "DummyGenerator"; }

protected:
    void writeFunctionArguments(QTextStream&, const AbstractMetaFunction*, Options) const {}
    void writeArgumentNames(QTextStream&, const AbstractMetaFunction*, Options) const {}
    QString fileNameForClass(const AbstractMetaClass* metaClass) const;
    void generateClass(QTextStream& s, const AbstractMetaClass* metaClass);
    void finishGeneration() {}
};

#endif // DUMMYGENERATOR_H