True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

IOStreamZip.h

00001 //---------------------------------------------------------------------------------
00002 // File Name: IOStreamZip.h
00003 // Description:
00004 //
00005 // Copyright (C) 2004 - 2005 True Axis Pty Ltd, Australia. 
00006 // All Rights Reserved.
00007 //
00008 // History:
00009 //      Created File.
00010 //---------------------------------------------------------------------------------
00011 
00012 #ifndef TA_IOSTREAMZIP_H
00013 #define TA_IOSTREAMZIP_H
00014 
00015 #ifndef TA_IOSTREAM_H
00016 #include "../Common/IOStream.h"
00017 #endif // TA_IOSTREAM_H
00018 
00019 namespace TA
00020 {
00021 
00022 struct IZipFileInputStream;
00023 class FileSystem;
00024 
00025 class TACOMMON_CLASS IOStreamInputZip : public IOStreamInput
00026 {
00027 public:
00028     IOStreamInputZip();
00029     ~IOStreamInputZip();
00030 
00031     void Finalise();
00032 
00033     void StreamData(void* pData, int nSize);
00034     int GetPos();
00035     int GetSize();
00036 
00037 private:
00038     friend class FileSystem;
00039     bool Initialise(IZipFileInputStream* pZipStream);
00040     String m_strName;
00041     IZipFileInputStream* m_pZipStream;
00042 };
00043 
00044 }
00045 
00046 #endif // TA_IOSTREAMZIP_H


© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.