GZipStream Class Reference

A file stream compressor and decompressor. Allows the CCDiskFile to offer compression of files. At present just used to compress the native file format. More...

#include <zstream.h>

List of all members.

Public Member Functions

 GZipStream ()
 GZipStream constructor.
 ~GZipStream ()
 GZipStream destructor.

Public Attributes

z_stream stream
INT32 z_err
INT32 z_eof
iostream * file
Byteinbuf
Byteoutbuf
uLong crc
char * msg
TCHARpath
INT32 transparent
char mode
BOOL Peek
char PeekedValue
INT32 PeekStatus
FilePos InitialPos
BOOL Inited

Private Member Functions

 CC_DECLARE_MEMDUMP (GZipStream)


Detailed Description

A file stream compressor and decompressor. Allows the CCDiskFile to offer compression of files. At present just used to compress the native file format.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com> Humprhys
Date:
23/5/95
Note: z_stream == to our ZStream gz_stream == to our GZipStream

Definition at line 184 of file zstream.h.


Constructor & Destructor Documentation

GZipStream::GZipStream  ) 
 

GZipStream constructor.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
34/05/95

Definition at line 233 of file zstream.cpp.

00234 {
00235     z_err = Z_OK;
00236     z_eof = 0;
00237 
00238     file = NULL;
00239     inbuf = NULL;
00240     outbuf = NULL;
00241 
00242     crc = 0;
00243     crc = GZipFile::crc32(0L, NULL, 0);
00244     msg = NULL;
00245     path = NULL;
00246     transparent = 0;
00247 
00248     Peek = FALSE;       // no value peeked
00249     PeekedValue = '#';  // random value
00250     PeekStatus = Z_OK;  // status ok
00251 
00252     InitialPos = 0;
00253 
00254     Inited = FALSE;
00255 }   

GZipStream::~GZipStream  ) 
 

GZipStream destructor.

Author:
Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
Date:
34/05/95

Definition at line 267 of file zstream.cpp.

00268 {
00269     // Try and free up the buffers that we have allocated 
00270     TRYFREE(inbuf);
00271     TRYFREE(outbuf);
00272     TRYFREE(path);
00273     TRYFREE(msg);
00274 }   


Member Function Documentation

GZipStream::CC_DECLARE_MEMDUMP GZipStream   )  [private]
 


Member Data Documentation

uLong GZipStream::crc
 

Definition at line 204 of file zstream.h.

iostream* GZipStream::file
 

Definition at line 201 of file zstream.h.

Byte* GZipStream::inbuf
 

Definition at line 202 of file zstream.h.

BOOL GZipStream::Inited
 

Definition at line 217 of file zstream.h.

FilePos GZipStream::InitialPos
 

Definition at line 215 of file zstream.h.

char GZipStream::mode
 

Definition at line 208 of file zstream.h.

char* GZipStream::msg
 

Definition at line 205 of file zstream.h.

Byte* GZipStream::outbuf
 

Definition at line 203 of file zstream.h.

TCHAR* GZipStream::path
 

Definition at line 206 of file zstream.h.

BOOL GZipStream::Peek
 

Definition at line 211 of file zstream.h.

char GZipStream::PeekedValue
 

Definition at line 212 of file zstream.h.

INT32 GZipStream::PeekStatus
 

Definition at line 213 of file zstream.h.

z_stream GZipStream::stream
 

Definition at line 198 of file zstream.h.

INT32 GZipStream::transparent
 

Definition at line 207 of file zstream.h.

INT32 GZipStream::z_eof
 

Definition at line 200 of file zstream.h.

INT32 GZipStream::z_err
 

Definition at line 199 of file zstream.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:55:05 2007 for Camelot by  doxygen 1.4.4