home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 June / VPR0106A.BIN / OLS / UNRAR32005 / unrar32005.lzh / src / arcinfo.h < prev    next >
C/C++ Source or Header  |  1998-03-23  |  1KB  |  53 lines

  1. /*
  2.  *   Copyright (c) 1998 T. Kamei (kamei@jsdlab.co.jp)
  3.  *
  4.  *   Permission to use, copy, modify, and distribute this software
  5.  * and its documentation for any purpose is hereby granted provided
  6.  * that the above copyright notice and this permission notice appear
  7.  * in all copies of the software and related documentation.
  8.  *
  9.  *                          NO WARRANTY
  10.  *
  11.  *   THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY WARRANTIES;
  12.  * WITHOUT EVEN THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS
  13.  * FOR A PARTICULAR PURPOSE.
  14.  */
  15.  
  16. #ifndef _arcinfo_h_
  17. # define _arcinfo_h_
  18.  
  19. class arcinfo
  20. {
  21.   arcinfo *a_prev;
  22.   arcinfo *a_next;
  23.   static arcinfo *a_chain;
  24. public:
  25.   HANDLE a_hunrar;
  26.   char a_arcpath[MAX_PATH + 1];
  27.   DWORD a_mode;
  28.   DWORD a_arcsize;
  29.   WORD a_arcdate;
  30.   WORD a_arctime;
  31.   u_long a_orig_sz;
  32.   u_long a_comp_sz;
  33.   int a_sfx;
  34.  
  35.   RARHeaderData a_hd;
  36.   int a_first_time;
  37.   int a_valid;
  38.   int a_eof;
  39.  
  40.   cmdline a_cl;
  41.   glob a_glob;
  42.  
  43.   arcinfo ();
  44.   ~arcinfo ();
  45.   int open (const char *, DWORD);
  46.   int close ();
  47.   int findnext (INDIVIDUALINFO *, int);
  48.   static arcinfo *find (HARC);
  49.   static void cleanup ();
  50. };
  51.  
  52. #endif
  53.