🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
CompressorImplRaw.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstUtil/CompressorInterface.hpp"
24
#include "AstUtil/StringView.hpp"
25
26
AST_NAMESPACE_BEGIN
27
31
class
AST_UTIL_API
CompressorImplRaw
:
public
CompressorInterface
32
{
33
public
:
34
static
CompressorImplRaw
& Instance();
35
36
CompressorImplRaw
() =
default
;
37
virtual
~CompressorImplRaw
() =
default
;
38
39
virtual
errc_t
compress
(
StringView
source,
StringView
target,
StringView
curdir = {})
const
override
;
40
virtual
bool
canCompress
(
StringView
source,
StringView
target)
const override
;
41
};
42
43
AST_NAMESPACE_END
ast::CompressorImplRaw
定义
CompressorImplRaw.hpp:32
ast::CompressorInterface
定义
CompressorInterface.hpp:36
ast::CompressorInterface::compress
virtual errc_t compress(StringView source, StringView target, StringView curdir={}) const =0
压缩文件或目录
ast::CompressorInterface::canCompress
virtual bool canCompress(StringView source, StringView target) const
检查该压缩实现是否能处理指定源文件/目录并生成目标格式
定义
CompressorInterface.cpp:26
ast::StringViewBasic< char >
src
AstUtil
Archiver
CompressorImpl
CompressorImplRaw.hpp
制作者
1.12.0