made GetSize() public
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,25 +28,26 @@
|
|||||||
|
|
||||||
class WXDLLEXPORT wxZipInputStream : public wxInputStream
|
class WXDLLEXPORT wxZipInputStream : public wxInputStream
|
||||||
{
|
{
|
||||||
private:
|
public:
|
||||||
size_t m_Size;
|
wxZipInputStream(const wxString& archive, const wxString& file);
|
||||||
off_t m_Pos;
|
// archive is name of .zip archive, file is name of file to be extracted.
|
||||||
void *m_Archive;
|
// Remember that archive must be local file accesible via fopen, fread functions!
|
||||||
// this void* is handle of archive .
|
~wxZipInputStream();
|
||||||
// I'm sorry it is void and not proper type but I don't want
|
|
||||||
// to make unzip.h header public.
|
|
||||||
|
|
||||||
public:
|
virtual size_t GetSize() const {return m_Size;}
|
||||||
wxZipInputStream(const wxString& archive, const wxString& file);
|
|
||||||
// archive is name of .zip archive, file is name of file to be extracted.
|
|
||||||
// Remember that archive must be local file accesible via fopen, fread functions!
|
|
||||||
~wxZipInputStream();
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual size_t GetSize() const {return m_Size;}
|
virtual size_t OnSysRead(void *buffer, size_t bufsize);
|
||||||
virtual size_t OnSysRead(void *buffer, size_t bufsize);
|
virtual off_t OnSysSeek(off_t seek, wxSeekMode mode);
|
||||||
virtual off_t OnSysSeek(off_t seek, wxSeekMode mode);
|
virtual off_t OnSysTell() const {return m_Pos;}
|
||||||
virtual off_t OnSysTell() const {return m_Pos;}
|
|
||||||
|
private:
|
||||||
|
size_t m_Size;
|
||||||
|
off_t m_Pos;
|
||||||
|
|
||||||
|
// this void* is handle of archive . I'm sorry it is void and not proper
|
||||||
|
// type but I don't want to make unzip.h header public.
|
||||||
|
void *m_Archive;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -55,20 +56,3 @@ class WXDLLEXPORT wxZipInputStream : public wxInputStream
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
// __ZIPSTREAM_H__
|
// __ZIPSTREAM_H__
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user