00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _ZIPRESOURCE_
00019 #define _ZIPRESOURCE_
00020
00021 #include <string>
00022
00023 #include "resource/AbstractResourceFile.h"
00024 #include "util/ZipFile.h"
00025
00026 class ZipResourceFile: public AbstractResourceFile
00027 {
00028 private:
00029 ZipFile* m_pFile;
00030 std::string m_resourceFileName;
00031 bool m_bOpen;
00032 public:
00033 ZipResourceFile(const std::string& resourceFileName)
00034 :m_pFile(0), m_resourceFileName(resourceFileName), m_bOpen(false)
00035 {
00036 }
00037
00038 virtual ~ZipResourceFile();
00039
00040 virtual bool Open();
00041 virtual bool IsOpen() const { return m_bOpen; }
00042 virtual int GetResourceSize(const Resource* const pResource) const;
00043 virtual void GetResource(const Resource* const pResource, char* pBuffer);
00044
00045 };
00046
00047 #endif