23 #include "../declspec.h"
41 typedef std::function<
compressor_t(
const std::vector<std::string>&)> compfactory_t;
45 static void registerCompressor(
const std::string& name,
46 const compfactory_t& fn);
47 static void registerDecompressor(
const std::string& name,
48 const decompressor_t& fn);
49 static std::vector<std::string> knownCompressors();
50 static std::vector<std::string> knownDecompressors();
52 static compressor_t getCompressor(
const std::string& name,
53 const std::vector<std::string>& args);
58 typedef std::map<std::string, compfactory_t> comp_reg_t;
59 typedef std::vector<std::pair<std::string, decompressor_t>> decomp_reg_t;
60 static comp_reg_t& _getCompressRegistry();
61 static decomp_reg_t& _getDecompressRegistry();