1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 22:19:07 +00:00
Aquaria/ExternalLibs/ttvfs_zip/VFSDirZip.h
2014-04-06 19:19:33 +02:00

29 lines
547 B
C++

#ifndef VFSDIR_ZIP_H
#define VFSDIR_ZIP_H
#include "VFSDir.h"
#include "VFSZipArchiveRef.h"
VFS_NAMESPACE_START
class ZipDir : public Dir
{
public:
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;
protected:
CountedPtr<ZipArchiveRef> _archiveHandle;
bool _canLoad;
const bool _couldLoad;
};
VFS_NAMESPACE_END
#endif