home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / zkuste / wincom / download / mltwcx.1.0.0.8-src.cab / mltwcx-src / ArcItem.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-16  |  1023 b   |  36 lines

  1. #ifndef _ARCITEM_H_
  2.     #define _ARCITEM_H_
  3.  
  4. #include "ArchiveDescription.h"
  5.  
  6. class CArcItem
  7. {
  8.     friend class CArchiverEngine;
  9.     CArcItem *m_pNext;
  10.     char m_szFilePath[MAX_PATH];
  11.     int  m_iPackedSize;
  12.     int  m_iUnpackedSize;
  13.     int  m_iFileAttr;
  14.     union
  15.     {
  16.         int  m_iFileTime;
  17.         struct  _dos_ftime {
  18.         /* least significant bits in a double word goes first! */
  19.         unsigned short  sec   : 5;   /* 0  Seconds / 2 */
  20.         unsigned short  min   : 6;   /* 5  Minutes */
  21.         unsigned short  hour  : 5;   /* 11 Hours */
  22.         unsigned short  day   : 5;   /* 16 Days */
  23.         unsigned short  month : 4;   /* 21 Months */
  24.         unsigned short  year  : 7;   /* 25 Year - 1980 */
  25.         }ftime;
  26.     };
  27.  
  28. public:
  29.     CArcItem();
  30.     ~CArcItem();
  31.     CArcItem *GetNext(){return m_pNext;}
  32.     static CArcItem *LoadFromList(const char *pList,int iListLen,CArchiveDescription *pad);
  33.     static int ParseFormatLine(const char *pFmt,const char **ppBeg, CArcItem *pai,CArchiveDescription *pad);
  34. };
  35.  
  36. #endif //_ARCITEM_H_