🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
CompressorInterface.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstUtil/StringView.hpp"
25
26AST_NAMESPACE_BEGIN
27
35class AST_UTIL_API CompressorInterface
36{
37public:
38 virtual ~CompressorInterface() = default;
39
46 virtual errc_t compress(StringView source, StringView target, StringView curdir = {}) const = 0;
47
52 virtual bool isSupported() const { return true; }
53
59 virtual bool canCompress(StringView source, StringView target) const;
60};
61
62
65AST_NAMESPACE_END
定义 CompressorInterface.hpp:36
virtual errc_t compress(StringView source, StringView target, StringView curdir={}) const =0
压缩文件或目录
virtual bool isSupported() const
检查该压缩实现是否在当前环境中可用
定义 CompressorInterface.hpp:52