2012-06-01 15:23:19 +00:00
|
|
|
#ifndef VFSDIR_ZIP_H
|
|
|
|
#define VFSDIR_ZIP_H
|
|
|
|
|
|
|
|
#include "VFSDir.h"
|
2014-04-06 17:19:33 +00:00
|
|
|
#include "VFSZipArchiveRef.h"
|
2012-06-01 15:23:19 +00:00
|
|
|
|
|
|
|
VFS_NAMESPACE_START
|
|
|
|
|
|
|
|
|
2014-04-06 17:19:33 +00:00
|
|
|
class ZipDir : public Dir
|
2012-06-01 15:23:19 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-04-06 17:19:33 +00:00
|
|
|
ZipDir(ZipArchiveRef *handle, const char *subpath, bool canLoad);
|
|
|
|
virtual ~ZipDir();
|
|
|
|
virtual void load();
|
|
|
|
virtual const char *getType() const { return "ZipDir"; }
|
|
|
|
virtual void close();
|
|
|
|
virtual DirBase *createNew(const char *dir) const;
|
2012-06-01 15:23:19 +00:00
|
|
|
|
|
|
|
protected:
|
2014-04-06 17:19:33 +00:00
|
|
|
CountedPtr<ZipArchiveRef> _archiveHandle;
|
|
|
|
bool _canLoad;
|
|
|
|
const bool _couldLoad;
|
2012-06-01 15:23:19 +00:00
|
|
|
};
|
|
|
|
|
2014-04-06 17:19:33 +00:00
|
|
|
|
2012-06-01 15:23:19 +00:00
|
|
|
VFS_NAMESPACE_END
|
|
|
|
|
|
|
|
#endif
|