Fission FSN
Loading...
Searching...
No Matches
fsIZipFile.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCZipFile.h
4*
5* Purpose: Zip archive wrapper
6*
7*********************************************************************/
8
9#ifndef fsIZipFilehdr
10#define fsIZipFilehdr
11
12#include <memory>
13#include <fsCore/fsStr.h>
14
15class fsCResourceName;
16
18{
19public:
20
21 static std::unique_ptr<fsIZipFile> create(const fsCResourceName &pResourceName);
22 virtual fsStr assetRead(fsStr &pAssetName) { return ""; };
23 // Existence-only check: true if pAssetName is present as an entry in
24 // this archive. Never asserts on a miss (unlike assetRead(), where a
25 // missing entry is treated as a genuine content error) -- callers use
26 // this to probe for an optional entry before deciding to read it.
27 virtual fsBool assetExistsGet(fsStr &pAssetName) { return false; };
28 virtual ~fsIZipFile() = default;
29
30protected:
31
32 fsIZipFile(const fsCResourceName& pResourceName) {};
33
34};
35
36
37#endif
Definition fsCResourceName.h:32
virtual fsBool assetExistsGet(fsStr &pAssetName)
Definition fsIZipFile.h:27
static std::unique_ptr< fsIZipFile > create(const fsCResourceName &pResourceName)
Definition fsIZipFile.cpp:13
fsIZipFile(const fsCResourceName &pResourceName)
Definition fsIZipFile.h:32
virtual ~fsIZipFile()=default
virtual fsStr assetRead(fsStr &pAssetName)
Definition fsIZipFile.h:22
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26