diff src/win32/7zip/7z/CPP/7zip/Archive/GZip/GZipHeader.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Archive/GZip/GZipHeader.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,85 @@
     1.4 +// Archive/GZip/Header.h
     1.5 +
     1.6 +#ifndef __ARCHIVE_GZIP_HEADER_H
     1.7 +#define __ARCHIVE_GZIP_HEADER_H
     1.8 +
     1.9 +#include "Common/Types.h"
    1.10 +
    1.11 +namespace NArchive {
    1.12 +namespace NGZip {
    1.13 +
    1.14 +extern UInt16 kSignature;
    1.15 +static const UInt32 kSignatureSize = 2;
    1.16 +
    1.17 +namespace NFileHeader
    1.18 +{
    1.19 +  /*
    1.20 +  struct CBlock
    1.21 +  {
    1.22 +    UInt16 Id;
    1.23 +    Byte CompressionMethod;
    1.24 +    Byte Flags;
    1.25 +    UInt32 Time;
    1.26 +    Byte ExtraFlags;
    1.27 +    Byte HostOS;
    1.28 +  };
    1.29 +  */
    1.30 +  
    1.31 +  namespace NFlags
    1.32 +  {
    1.33 +    const int kDataIsText = 1 << 0;
    1.34 +    const int kHeaderCRCIsPresent = 1 << 1;
    1.35 +    const int kExtraIsPresent = 1 << 2;
    1.36 +    const int kNameIsPresent = 1 << 3;
    1.37 +    const int kComentIsPresent = 1 << 4;
    1.38 +  }
    1.39 +  
    1.40 +  namespace NExtraFlags
    1.41 +  {
    1.42 +    enum EEnum
    1.43 +    {
    1.44 +      kMaximum = 2,
    1.45 +      kFastest = 4
    1.46 +    };
    1.47 +  }
    1.48 +  
    1.49 +  namespace NCompressionMethod
    1.50 +  {
    1.51 +    const Byte kDeflate = 8;
    1.52 +  }
    1.53 +
    1.54 +  namespace NHostOS
    1.55 +  {
    1.56 +    enum EEnum
    1.57 +    {
    1.58 +      kFAT      = 0,  // filesystem used by MS-DOS, OS/2, Win32
    1.59 +        // pkzip 2.50 (FAT / VFAT / FAT32 file systems)
    1.60 +        kAMIGA    = 1,
    1.61 +        kVMS      = 2,  // VAX/VMS
    1.62 +        kUnix     = 3,
    1.63 +        kVM_CMS   = 4,
    1.64 +        kAtari    = 5,  // what if it's a minix filesystem? [cjh]
    1.65 +        kHPFS     = 6,  // filesystem used by OS/2 (and NT 3.x)
    1.66 +        kMac      = 7,
    1.67 +        kZ_System = 8,
    1.68 +        kCPM      = 9,
    1.69 +        kTOPS20   = 10, // pkzip 2.50 NTFS
    1.70 +        kNTFS     = 11, // filesystem used by Windows NT
    1.71 +        kQDOS     = 12, // SMS/QDOS
    1.72 +        kAcorn    = 13, // Archimedes Acorn RISC OS
    1.73 +        kVFAT     = 14, // filesystem used by Windows 95, NT
    1.74 +        kMVS      = 15,
    1.75 +        kBeOS     = 16, // hybrid POSIX/database filesystem
    1.76 +                        // BeBOX or PowerMac
    1.77 +        kTandem   = 17,
    1.78 +        kTHEOS    = 18,
    1.79 +
    1.80 +        kUnknown = 255
    1.81 +    };
    1.82 +    const int kNumHostSystems = 19;
    1.83 +  }
    1.84 +}
    1.85 +
    1.86 +}}
    1.87 +
    1.88 +#endif