From 927e065f9829045247be7c0b3296408b6f577c1f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 12 Jun 2022 13:44:58 +0200 Subject: feat: add reading RLE files --- src/interfaces/RLE_reader.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/interfaces/RLE_reader.hpp (limited to 'src/interfaces/RLE_reader.hpp') diff --git a/src/interfaces/RLE_reader.hpp b/src/interfaces/RLE_reader.hpp new file mode 100644 index 0000000..a3266a8 --- /dev/null +++ b/src/interfaces/RLE_reader.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include "interfaces/matrix.hpp" + +#include +#include + +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) +class IRLEReader +{ +public: + virtual ~IRLEReader() noexcept = default; + + using MatrixElement = char; + + [[nodiscard]] virtual auto read_RLE_file(const std::filesystem::path &path) const + -> std::unique_ptr> = 0; +}; + -- cgit v1.2.3-18-g5258