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