#pragma once #include #include #include #include #include "qrcodegen.hpp" #include "Renderer.hpp" namespace massivedynamic { typedef uint32_t Color; enum class Format { CONSOLE, SVG, PNG, JPG, BMP, END }; constexpr size_t FormatLength = static_cast(Format::END); class QR { private: std::string outputFile; std::vector pixels; std::unordered_map> renderers; public: QR(const std::string& data, std::string outputFile, size_t size, qrcodegen::QrCode::Ecc type); void render(Format format); }; }