🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
CompressorImplSystem.hpp
浏览该文件的文档.
1
21
22#pragma once
23
24#include "AstUtil/CompressorInterface.hpp"
25#include "AstUtil/ArchiverUtils.hpp"
26
27#include <string>
28
29AST_NAMESPACE_BEGIN
30
36class AST_UTIL_API CompressorImplSystem : public CompressorInterface
37{
38public:
39 static CompressorImplSystem& Instance();
40
41 CompressorImplSystem() = default;
42 virtual ~CompressorImplSystem() = default;
43
44 virtual errc_t compress(StringView source, StringView target, StringView curdir = {}) const override;
45 virtual bool isSupported() const override;
46 virtual bool canCompress(StringView source, StringView target) const override;
47};
48
49AST_NAMESPACE_END
定义 CompressorImplSystem.hpp:37
定义 CompressorInterface.hpp:36
virtual errc_t compress(StringView source, StringView target, StringView curdir={}) const =0
压缩文件或目录
virtual bool canCompress(StringView source, StringView target) const
检查该压缩实现是否能处理指定源文件/目录并生成目标格式
定义 CompressorInterface.cpp:26
virtual bool isSupported() const
检查该压缩实现是否在当前环境中可用
定义 CompressorInterface.hpp:52