| 96 | }; |
| 97 | |
| 98 | class ZipDataRetriever : public IFileDataRetriever |
| 99 | { |
| 100 | private: |
| 101 | const std::string _path; |
| 102 | const IZipArchive& _zipArchive; |
| 103 | |
| 104 | public: |
| 105 | ZipDataRetriever(std::string_view path, const IZipArchive& zipArchive) |
| 106 | : _path(path) |
| 107 | , _zipArchive(zipArchive) |
| 108 | { |
| 109 | } |
| 110 | |
| 111 | std::vector<uint8_t> GetData(std::string_view path) const override |
| 112 | { |
| 113 | return _zipArchive.GetFileData(path); |
| 114 | } |
| 115 | |
| 116 | ObjectAsset GetAsset(std::string_view path) const override |
| 117 | { |
| 118 | return ObjectAsset(_path, path); |
| 119 | } |
| 120 | }; |
| 121 | |
| 122 | class ReadObjectContext : public IReadObjectContext |
| 123 | { |
no outgoing calls
no test coverage detected