aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/generator/iarew/iarewprojectwriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/generator/iarew/iarewprojectwriter.h')
-rw-r--r--src/plugins/generator/iarew/iarewprojectwriter.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/plugins/generator/iarew/iarewprojectwriter.h b/src/plugins/generator/iarew/iarewprojectwriter.h
index db4c1c840..ae425b29e 100644
--- a/src/plugins/generator/iarew/iarewprojectwriter.h
+++ b/src/plugins/generator/iarew/iarewprojectwriter.h
@@ -31,32 +31,19 @@
#ifndef QBS_IAREWPROJECTWRITER_H
#define QBS_IAREWPROJECTWRITER_H
-#include "iiarewnodevisitor.h"
+#include <generators/xmlprojectwriter.h>
namespace qbs {
-class IarewProject;
-
-class IarewProjectWriter final : public IIarewNodeVisitor
+class IarewProjectWriter final : public gen::xml::ProjectWriter
{
Q_DISABLE_COPY(IarewProjectWriter)
public:
explicit IarewProjectWriter(std::ostream *device);
- bool write(const IarewProject *project);
private:
- void visitStart(const IarewProject *project) final;
- void visitEnd(const IarewProject *project) final;
-
- void visitStart(const IarewProperty *property) final;
- void visitEnd(const IarewProperty *property) final;
-
- void visitStart(const IarewPropertyGroup *propertyGroup) final;
- void visitEnd(const IarewPropertyGroup *propertyGroup) final;
-
- std::ostream *m_device = nullptr;
- QByteArray m_buffer;
- std::unique_ptr<QXmlStreamWriter> m_writer;
+ void visitStart(const gen::xml::Project *project) final;
+ void visitEnd(const gen::xml::Project *project) final;
};
} // namespace qbs