#include <ExtractorImplSystem.hpp>
系统命令后端
通过调用系统安装的命令行工具进行解压:
- tar → .tar, .tar.gz, .tar.bz2, .tar.xz
- unzip → .zip
- gzip → .gz
- 7z → .7z, .rar
◆ canExtract()
| bool ast::ExtractorImplSystem::canExtract |
( |
StringView | source | ) |
const |
|
overridevirtual |
◆ extract()
◆ isSupported()
| bool ast::ExtractorImplSystem::isSupported |
( |
| ) |
const |
|
overridevirtual |
检查该解压实现是否在当前环境中可用
例如:基于 Shell COM 的实现检查是否是 Windows, 基于系统命令的实现检查是否安装了对应的命令行工具
- 返回
- true 如果可用,false 否则
重载 ast::ExtractorInterface .
该类的文档由以下文件生成:
- src/AstUtil/Archiver/ExtractorImpl/ExtractorImplSystem.hpp
- src/AstUtil/Archiver/ExtractorImpl/ExtractorImplSystem.cpp