blob: 797575e684e15ac09dc69a4b1d5a391c96d11c6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "interfaces/RLE_reader.hpp"
#include "interfaces/matrix.hpp"
#include <yacppdic/auto_wirable.hpp>
#include <filesystem>
#include <memory>
class RLEReader
: public IRLEReader,
public yacppdic::
AutoWirable<IRLEReader, RLEReader, IMatrixFactory<IRLEReader::MatrixElement>>
{
public:
explicit RLEReader(const IMatrixFactory<MatrixElement> &matrix_factory) noexcept;
[[nodiscard]] auto read_RLE_file(const std::filesystem::path &path) const
-> std::unique_ptr<IMatrix<MatrixElement>> override;
private:
IMatrixFactory<MatrixElement> _matrix_factory;
};
|