home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia: Special Games / INFESPGAMES.mdf / os2 / ribble / support / cff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-28  |  604 b   |  44 lines

  1. #include <CSupport.h>
  2. #include <CStrng.h>
  3.  
  4. #if defined(__WIN__) || defined(WIN31)
  5.   #if defined(__WATCOMC__)
  6.     #include <stdio.h>
  7.   #else
  8.     #include <dir.h>
  9.   #endif
  10. #endif
  11.  
  12.  
  13. #ifndef _Cff_h
  14. #define _Cff_h
  15.  
  16. class CSExport CFindFile
  17. {
  18. public:
  19.  
  20.   enum CFindAttrib
  21.   {
  22.     InclFiles,
  23.     InclFilesAndDirs
  24.   };
  25.  
  26.   CFindFile(char* _pattern, CFindAttrib _attrib);
  27.   ~CFindFile();
  28.   int Find(CString& _result);
  29.  
  30. private:
  31.  
  32.   int           first;
  33.   CFindAttrib   attr;
  34.   CString       pattern;
  35.  
  36. #if defined(__OS2__)
  37.   HDIR  hdir;
  38. #else
  39.   ffblk ff;
  40. #endif
  41. };
  42.  
  43. #endif
  44.