aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/RLE_reader.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-12 13:44:58 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:57:01 +0200
commit927e065f9829045247be7c0b3296408b6f577c1f (patch)
tree7da3d9cd5aa4070414a8708a582f6c3ab3e1e708 /src/interfaces/RLE_reader.hpp
parenteb66598c326862fd9dfc1899be4eac93f81a8023 (diff)
feat: add reading RLE files
Diffstat (limited to 'src/interfaces/RLE_reader.hpp')
-rw-r--r--src/interfaces/RLE_reader.hpp19
1 files changed, 19 insertions, 0 deletions
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 <filesystem>
+#include <memory>
+
+// 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<IMatrix<MatrixElement>> = 0;
+};
+