chore: update code style in ZoneCodeGenerator entrypoint

This commit is contained in:
Jan
2025-04-19 15:58:00 +02:00
parent 0f3ee1fa79
commit 785cf8c025
5 changed files with 76 additions and 91 deletions

View File

@ -1,17 +1,15 @@
#pragma once
#include <memory>
class ZoneCodeGenerator
{
class Impl;
Impl* m_impl;
protected:
ZoneCodeGenerator() = default;
public:
ZoneCodeGenerator();
~ZoneCodeGenerator();
ZoneCodeGenerator(const ZoneCodeGenerator& other) = delete;
ZoneCodeGenerator(ZoneCodeGenerator&& other) noexcept = default;
ZoneCodeGenerator& operator=(const ZoneCodeGenerator& other) = delete;
ZoneCodeGenerator& operator=(ZoneCodeGenerator&& other) noexcept = default;
virtual ~ZoneCodeGenerator() = default;
virtual int Run(int argc, const char** argv) = 0;
int Run(int argc, const char** argv) const;
static std::unique_ptr<ZoneCodeGenerator> Create();
};