home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 5036 / source.7z / x_findfile.h < prev    next >
Encoding:
C/C++ Source or Header  |  2011-12-13  |  745 b   |  37 lines

  1. #ifndef __XENTAX_FINDFILE_H
  2. #define __XENTAX_FINDFILE_H
  3.  
  4. class find_file {
  5.  protected :
  6.   HANDLE           handle;
  7.   WIN32_FIND_DATAA find32;
  8.  public :
  9.   void close(void);
  10.  public :
  11.   bool find(const char* filename);
  12.   bool next(void);
  13.  public :
  14.   bool is_dots(void);
  15.   bool is_directory(void);
  16.   bool is_encrypted(void);
  17.   bool is_compressed(void);
  18.   bool is_normal(void);
  19.   bool is_hidden(void);
  20.   bool is_system(void);
  21.   bool is_archived(void);
  22.   bool is_readonly(void);
  23.  public :
  24.   const char* filename(void);
  25.   size_t filesize(void);
  26.  public :
  27.   bool operator !(void)const;
  28.  public :
  29.   find_file();
  30.  ~find_file();
  31.  private :
  32.   find_file(const find_file&);
  33.   void operator =(const find_file&);
  34. };
  35.  
  36. #endif
  37.