🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
CompressorInterface.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "AstUtil/StringView.hpp"
25
26
AST_NAMESPACE_BEGIN
27
35
class
AST_UTIL_API
CompressorInterface
36
{
37
public
:
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
65
AST_NAMESPACE_END
ast::CompressorInterface
定义
CompressorInterface.hpp:36
ast::CompressorInterface::compress
virtual errc_t compress(StringView source, StringView target, StringView curdir={}) const =0
压缩文件或目录
ast::CompressorInterface::isSupported
virtual bool isSupported() const
检查该压缩实现是否在当前环境中可用
定义
CompressorInterface.hpp:52
ast::StringViewBasic< char >
src
AstUtil
Archiver
CompressorInterface.hpp
制作者
1.12.0