Tileson  1.3.0
A helpful json parser for Tiled maps
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 
10 namespace 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  };
50 }
51 
52 #endif //TILESON_IDECOMPRESSOR_HPP
Definition: IDecompressor.hpp:14
virtual const std::string & name() const =0
virtual TOut decompressFile(const fs::path &path)=0
virtual TOut decompress(const TIn &input)=0
virtual TOut decompress(const void *data, size_t size)=0
Definition: Base64.hpp:12