Tileson 1.4.0
A helpful json parser for Tiled maps
Loading...
Searching...
No Matches
IDecompressor.hpp
Go to the documentation of this file.
1//
2// Created by robin on 29.07.2020.
3//
4
5#ifndef TILESON_IDECOMPRESSOR_HPP
6#define TILESON_IDECOMPRESSOR_HPP
7
8#include <string_view>
9
10namespace tson
11{
12 template <class TIn, class TOut>
14 {
15 public:
27 [[nodiscard]] virtual const std::string &name() const = 0;
28
34 virtual TOut decompress(const TIn &input) = 0;
35
41 virtual TOut decompressFile(const fs::path &path) = 0;
42
48 virtual TOut decompress(const void *data, size_t size) = 0;
49
53 virtual ~IDecompressor() = default;
54 };
55}
56
57#endif //TILESON_IDECOMPRESSOR_HPP
Definition IDecompressor.hpp:14
virtual TOut decompressFile(const fs::path &path)=0
virtual TOut decompress(const TIn &input)=0
virtual const std::string & name() const =0
virtual TOut decompress(const void *data, size_t size)=0
virtual ~IDecompressor()=default
Definition Base64.hpp:12