CMS 3D CMS Logo

lat::ZConstants Struct Reference

Constants related to ZLIB compression and ZIP archives. More...

#include <Iguana/Utilities/classlib/zip/ZConstants.h>

Inheritance diagram for lat::ZConstants:

lat::ZipUtils lat::GZIPInputStream lat::ZCompressor lat::ZDecompressor lat::ZipArchive lat::ZipInputStream lat::ZipMember lat::ZOutputStream lat::GZIPOutputStream lat::ZipOutputStream

List of all members.

Public Types

enum  { BEST_COMPRESSION = 9 }
enum  { DEFAULT_COMPRESSION = 6 }
enum  { BEST_SPEED = 1 }
enum  { DEFAULT_WINDOW_BITS = 15 }
enum  { DEFAULT_MEM_LEVEL = 8 }
enum  { ARCHIVE_VERSION = 20 }
enum  { DIR_HEADER_MAGIC = 0x02014b50 }
enum  { ENTRY_HEADER_MAGIC = 0x04034b50 }
enum  { END_HEADER_MAGIC = 0x06054b50 }
enum  { ZIP_MAGIC_LEN = 4 }
enum  { MAX_VAR_LEN = 0xffff }
enum  { MAX_SIZE = 0xffffffff }
enum  {
  DIR_MAGIC_OFF = 0, DIR_VMADE_OFF = 4, DIR_VMADE_LEN = 2, DIR_VREQD_OFF = 6,
  DIR_VREQD_LEN = 2, DIR_FLAG_OFF = 8, DIR_FLAG_LEN = 2, DIR_METHOD_OFF = 10,
  DIR_METHOD_LEN = 2, DIR_DATE_OFF = 12, DIR_DATE_LEN = 4, DIR_CRC32_OFF = 16,
  DIR_CRC32_LEN = 4, DIR_CSIZE_OFF = 20, DIR_CSIZE_LEN = 4, DIR_USIZE_OFF = 24,
  DIR_USIZE_LEN = 4, DIR_NAMELEN_OFF = 28, DIR_NAMELEN_LEN = 2, DIR_EXTRALEN_OFF = 30,
  DIR_EXTRALEN_LEN = 2, DIR_COMMENTLEN_OFF = 32, DIR_COMMENTLEN_LEN = 2, DIR_DISK_START_OFF = 34,
  DIR_DISK_START_LEN = 2, DIR_INT_ATTR_OFF = 36, DIR_INT_ATTR_LEN = 2, DIR_EXT_ATTR_OFF = 38,
  DIR_EXT_ATTR_LEN = 4, DIR_ENTRY_POS_OFF = 42, DIR_ENTRY_POS_LEN = 4, DIR_HEADER_SIZE = 46
}
enum  {
  END_MAGIC_OFF = 0, END_DISK_OFF = 4, END_DISK_LEN = 2, END_DIR_DISK_OFF = 6,
  END_DIR_DISK_LEN = 2, END_DISK_HDRS_OFF = 8, END_DISK_HDRS_LEN = 2, END_TOTAL_HDRS_OFF = 10,
  END_TOTAL_HDRS_LEN = 2, END_DIR_SIZE_OFF = 12, END_DIR_SIZE_LEN = 4, END_DIR_OFFSET_OFF = 16,
  END_DIR_OFFSET_LEN = 4, END_COMMENTLEN_OFF = 20, END_COMMENTLEN_LEN = 2, END_HEADER_SIZE = 22
}
enum  {
  ENTRY_MAGIC_OFF = 0, ENTRY_VREQD_OFF = 4, ENTRY_VREQD_LEN = 2, ENTRY_FLAG_OFF = 6,
  ENTRY_FLAG_LEN = 2, ENTRY_METHOD_OFF = 8, ENTRY_METHOD_LEN = 2, ENTRY_DATE_OFF = 10,
  ENTRY_DATE_LEN = 4, ENTRY_CRC32_OFF = 14, ENTRY_CRC32_LEN = 4, ENTRY_CSIZE_OFF = 18,
  ENTRY_CSIZE_LEN = 4, ENTRY_USIZE_OFF = 22, ENTRY_USIZE_LEN = 4, ENTRY_NAMELEN_OFF = 26,
  ENTRY_NAMELEN_LEN = 2, ENTRY_EXTRALEN_OFF = 28, ENTRY_EXTRALEN_LEN = 2, ENTRY_HEADER_SIZE = 30
}
enum  { GZIP_MAGIC = 0x8b1f }
enum  {
  GZHDR_MAGIC_OFF = 0, GZHDR_MAGIC_LEN = 2, GZHDR_METHOD_OFF = 2, GZHDR_METHOD_LEN = 1,
  GZHDR_FLAGS_OFF = 3, GZHDR_FLAGS_LEN = 1, GZHDR_TIME_OFF = 4, GZHDR_TIME_LEN = 4,
  GZHDR_XFLAGS_OFF = 8, GZHDR_XFLAGS_LEN = 1, GZHDR_OS_OFF = 9, GZHDR_OS_LEN = 1,
  GZHDR_SIZE = 10, GZHDR_FLAG_ASCII = 1, GZHDR_FLAG_HEAD_CRC = 2, GZHDR_FLAG_EXTRA_FIELD = 4,
  GZHDR_FLAG_ORIG_NAME = 8, GZHDR_FLAG_COMMENT = 16, GZHDR_FLAG_RESERVED = 0xe0
}
enum  Method { STORED = 0, DEFLATED = 8 }
enum  Strategy { DEFAULT = 0, FILTERED = 1, HUFFMAN_ONLY = 2 }


Detailed Description

Constants related to ZLIB compression and ZIP archives.

Definition at line 17 of file ZConstants.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
BEST_COMPRESSION 

Definition at line 32 of file ZConstants.h.

00032 { BEST_COMPRESSION              = 9 }; //< Best compression level

anonymous enum

Enumerator:
DEFAULT_COMPRESSION 

Definition at line 33 of file ZConstants.h.

00033 { DEFAULT_COMPRESSION           = 6 }; //< Default compression level

anonymous enum

Enumerator:
BEST_SPEED 

Definition at line 34 of file ZConstants.h.

00034 { BEST_SPEED                    = 1 }; //< Fastest compression level

anonymous enum

Enumerator:
DEFAULT_WINDOW_BITS 

Definition at line 37 of file ZConstants.h.

00037 { DEFAULT_WINDOW_BITS           = 15 };

anonymous enum

Enumerator:
DEFAULT_MEM_LEVEL 

Definition at line 38 of file ZConstants.h.

00038 { DEFAULT_MEM_LEVEL             = 8 };

anonymous enum

Enumerator:
ARCHIVE_VERSION 

Definition at line 42 of file ZConstants.h.

00042 { ARCHIVE_VERSION               = 20 };

anonymous enum

Enumerator:
DIR_HEADER_MAGIC 

Definition at line 45 of file ZConstants.h.

00045 { DIR_HEADER_MAGIC              = 0x02014b50 };

anonymous enum

Enumerator:
ENTRY_HEADER_MAGIC 

Definition at line 46 of file ZConstants.h.

00046 { ENTRY_HEADER_MAGIC            = 0x04034b50 };

anonymous enum

Enumerator:
END_HEADER_MAGIC 

Definition at line 47 of file ZConstants.h.

00047 { END_HEADER_MAGIC              = 0x06054b50 };

anonymous enum

Enumerator:
ZIP_MAGIC_LEN 

Definition at line 48 of file ZConstants.h.

00048 { ZIP_MAGIC_LEN         = 4 };

anonymous enum

Enumerator:
MAX_VAR_LEN 

Definition at line 49 of file ZConstants.h.

00049 { MAX_VAR_LEN                   = 0xffff };     //< Max variable-width field length

anonymous enum

Enumerator:
MAX_SIZE 

Definition at line 50 of file ZConstants.h.

00050 { MAX_SIZE                      = 0xffffffff }; //< Max size of things

anonymous enum

Enumerator:
DIR_MAGIC_OFF 
DIR_VMADE_OFF 
DIR_VMADE_LEN 
DIR_VREQD_OFF 
DIR_VREQD_LEN 
DIR_FLAG_OFF 
DIR_FLAG_LEN 
DIR_METHOD_OFF 
DIR_METHOD_LEN 
DIR_DATE_OFF 
DIR_DATE_LEN 
DIR_CRC32_OFF 
DIR_CRC32_LEN 
DIR_CSIZE_OFF 
DIR_CSIZE_LEN 
DIR_USIZE_OFF 
DIR_USIZE_LEN 
DIR_NAMELEN_OFF 
DIR_NAMELEN_LEN 
DIR_EXTRALEN_OFF 
DIR_EXTRALEN_LEN 
DIR_COMMENTLEN_OFF 
DIR_COMMENTLEN_LEN 
DIR_DISK_START_OFF 
DIR_DISK_START_LEN 
DIR_INT_ATTR_OFF 
DIR_INT_ATTR_LEN 
DIR_EXT_ATTR_OFF 
DIR_EXT_ATTR_LEN 
DIR_ENTRY_POS_OFF 
DIR_ENTRY_POS_LEN 
DIR_HEADER_SIZE 

Definition at line 54 of file ZConstants.h.

00054          {
00055         DIR_MAGIC_OFF           = 0,
00056         DIR_VMADE_OFF           = 4,    DIR_VMADE_LEN           = 2,
00057         DIR_VREQD_OFF           = 6,    DIR_VREQD_LEN           = 2,
00058         DIR_FLAG_OFF            = 8,    DIR_FLAG_LEN            = 2,
00059         DIR_METHOD_OFF          = 10,   DIR_METHOD_LEN          = 2,
00060         DIR_DATE_OFF            = 12,   DIR_DATE_LEN            = 4,
00061         DIR_CRC32_OFF           = 16,   DIR_CRC32_LEN           = 4,
00062         DIR_CSIZE_OFF           = 20,   DIR_CSIZE_LEN           = 4,
00063         DIR_USIZE_OFF           = 24,   DIR_USIZE_LEN           = 4,
00064         DIR_NAMELEN_OFF         = 28,   DIR_NAMELEN_LEN         = 2,
00065         DIR_EXTRALEN_OFF        = 30,   DIR_EXTRALEN_LEN        = 2,
00066         DIR_COMMENTLEN_OFF      = 32,   DIR_COMMENTLEN_LEN      = 2,
00067         DIR_DISK_START_OFF      = 34,   DIR_DISK_START_LEN      = 2,
00068         DIR_INT_ATTR_OFF        = 36,   DIR_INT_ATTR_LEN        = 2,
00069         DIR_EXT_ATTR_OFF        = 38,   DIR_EXT_ATTR_LEN        = 4,
00070         DIR_ENTRY_POS_OFF       = 42,   DIR_ENTRY_POS_LEN       = 4,
00071         DIR_HEADER_SIZE         = 46
00072     };

anonymous enum

Enumerator:
END_MAGIC_OFF 
END_DISK_OFF 
END_DISK_LEN 
END_DIR_DISK_OFF 
END_DIR_DISK_LEN 
END_DISK_HDRS_OFF 
END_DISK_HDRS_LEN 
END_TOTAL_HDRS_OFF 
END_TOTAL_HDRS_LEN 
END_DIR_SIZE_OFF 
END_DIR_SIZE_LEN 
END_DIR_OFFSET_OFF 
END_DIR_OFFSET_LEN 
END_COMMENTLEN_OFF 
END_COMMENTLEN_LEN 
END_HEADER_SIZE 

Definition at line 75 of file ZConstants.h.

anonymous enum

Enumerator:
ENTRY_MAGIC_OFF 
ENTRY_VREQD_OFF 
ENTRY_VREQD_LEN 
ENTRY_FLAG_OFF 
ENTRY_FLAG_LEN 
ENTRY_METHOD_OFF 
ENTRY_METHOD_LEN 
ENTRY_DATE_OFF 
ENTRY_DATE_LEN 
ENTRY_CRC32_OFF 
ENTRY_CRC32_LEN 
ENTRY_CSIZE_OFF 
ENTRY_CSIZE_LEN 
ENTRY_USIZE_OFF 
ENTRY_USIZE_LEN 
ENTRY_NAMELEN_OFF 
ENTRY_NAMELEN_LEN 
ENTRY_EXTRALEN_OFF 
ENTRY_EXTRALEN_LEN 
ENTRY_HEADER_SIZE 

Definition at line 88 of file ZConstants.h.

00088          {
00089         ENTRY_MAGIC_OFF         = 0,
00090         ENTRY_VREQD_OFF         = 4,    ENTRY_VREQD_LEN         = 2,
00091         ENTRY_FLAG_OFF          = 6,    ENTRY_FLAG_LEN          = 2,
00092         ENTRY_METHOD_OFF        = 8,    ENTRY_METHOD_LEN        = 2,
00093         ENTRY_DATE_OFF          = 10,   ENTRY_DATE_LEN          = 4,
00094         ENTRY_CRC32_OFF         = 14,   ENTRY_CRC32_LEN         = 4,
00095         ENTRY_CSIZE_OFF         = 18,   ENTRY_CSIZE_LEN         = 4,
00096         ENTRY_USIZE_OFF         = 22,   ENTRY_USIZE_LEN         = 4,
00097         ENTRY_NAMELEN_OFF       = 26,   ENTRY_NAMELEN_LEN       = 2,
00098         ENTRY_EXTRALEN_OFF      = 28,   ENTRY_EXTRALEN_LEN      = 2,
00099         ENTRY_HEADER_SIZE       = 30
00100     };

anonymous enum

Enumerator:
GZIP_MAGIC 

Definition at line 103 of file ZConstants.h.

00103 { GZIP_MAGIC = 0x8b1f };

anonymous enum

Enumerator:
GZHDR_MAGIC_OFF 
GZHDR_MAGIC_LEN 
GZHDR_METHOD_OFF 
GZHDR_METHOD_LEN 
GZHDR_FLAGS_OFF 
GZHDR_FLAGS_LEN 
GZHDR_TIME_OFF 
GZHDR_TIME_LEN 
GZHDR_XFLAGS_OFF 
GZHDR_XFLAGS_LEN 
GZHDR_OS_OFF 
GZHDR_OS_LEN 
GZHDR_SIZE 
GZHDR_FLAG_ASCII 
GZHDR_FLAG_HEAD_CRC 
GZHDR_FLAG_EXTRA_FIELD 
GZHDR_FLAG_ORIG_NAME 
GZHDR_FLAG_COMMENT 
GZHDR_FLAG_RESERVED 

Definition at line 104 of file ZConstants.h.

00104          {
00105         GZHDR_MAGIC_OFF  = 0, GZHDR_MAGIC_LEN  = 2,
00106         GZHDR_METHOD_OFF = 2, GZHDR_METHOD_LEN = 1,
00107         GZHDR_FLAGS_OFF  = 3, GZHDR_FLAGS_LEN  = 1,
00108         GZHDR_TIME_OFF   = 4, GZHDR_TIME_LEN   = 4,
00109         GZHDR_XFLAGS_OFF = 8, GZHDR_XFLAGS_LEN = 1,
00110         GZHDR_OS_OFF     = 9, GZHDR_OS_LEN     = 1,
00111         GZHDR_SIZE       = 10,
00112 
00113         // The standard header can be followed by:
00114         //   - extra field: 2-byte len + data (flags & EXTRA_FIELD)
00115         //   - original file name: EOF-terminated string (flags & ORIG_NAME)
00116         //   - comment: EOF-terminaed string (flags & COMMENT)
00117         //   - header crc: 2-byte value (flags & HEAD_CRC)
00118         //
00119         // This is followed by data, and finally 4-byte CRC-32 and a
00120         // 4-byte original uncompressed data length (FIXME: .gz files
00121         // can be concatenated back-to-back, need to reset total_out
00122         // in z_stream and reinit crc32).
00123 
00124         GZHDR_FLAG_ASCII        = 1,  // bit 0: file is probably ascii text
00125         GZHDR_FLAG_HEAD_CRC     = 2,  // bit 1: header crc16 present
00126         GZHDR_FLAG_EXTRA_FIELD  = 4,  // bit 2: extra field present
00127         GZHDR_FLAG_ORIG_NAME    = 8,  // bit 3: original file name present
00128         GZHDR_FLAG_COMMENT      = 16, // bit 4: file comment present
00129         GZHDR_FLAG_RESERVED     = 0xe0 // bits 5-7: reserved
00130     };

enum lat::ZConstants::Method

Enumerator:
STORED 
DEFLATED 

Definition at line 21 of file ZConstants.h.

00021                 {
00022         STORED                          = 0, //< Stored as is
00023         DEFLATED                        = 8  //< Stored using deflate
00024     };

enum lat::ZConstants::Strategy

Enumerator:
DEFAULT 
FILTERED 
HUFFMAN_ONLY 

Definition at line 25 of file ZConstants.h.

00025                   {
00026         DEFAULT                         = 0, //< Default compression strategy
00027         FILTERED                        = 1, //< FIXME
00028         HUFFMAN_ONLY                    = 2  //< FIXME
00029     };


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:48:45 2009 for CMSSW by  doxygen 1.5.4