unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

find.hpp
Go to the documentation of this file.
1#ifndef _RAR_FINDDATA_
2#define _RAR_FINDDATA_
3
5 FDDF_SECONDDIR=1 // Second encounter of same directory in SCAN_GETDIRSTWICE ScanTree mode.
6};
7
8struct FindData
9{
13 bool IsDir;
14 bool IsLink;
18#ifdef _WIN_ALL
19 FILETIME ftCreationTime;
20 FILETIME ftLastAccessTime;
21 FILETIME ftLastWriteTime;
22#endif
24 bool Error;
25};
26
28{
29 private:
30#ifdef _WIN_ALL
31 static HANDLE Win32Find(HANDLE hFind,const wchar *Mask,FindData *fd);
32#endif
33
36#ifdef _WIN_ALL
37 HANDLE hFind;
38#else
39 DIR *dirp;
40#endif
41 public:
42 FindFile();
43 ~FindFile();
44 void SetMask(const wchar *Mask);
45 bool Next(FindData *fd,bool GetSymLink=false);
46 static bool FastFind(const wchar *FindMask,FindData *fd,bool GetSymLink=false);
47};
48
49#endif
bool FirstCall
Definition: find.hpp:35
void SetMask(const wchar *Mask)
Definition: find.cpp:27
FindFile()
Definition: find.cpp:3
~FindFile()
Definition: find.cpp:15
wchar FindMask[NM]
Definition: find.hpp:34
bool Next(FindData *fd, bool GetSymLink=false)
Definition: find.cpp:34
static bool FastFind(const wchar *FindMask, FindData *fd, bool GetSymLink=false)
Definition: find.cpp:108
DIR * dirp
Definition: find.hpp:39
FINDDATA_FLAGS
Definition: find.hpp:4
@ FDDF_SECONDDIR
Definition: find.hpp:5
wchar_t wchar
Definition: rartypes.hpp:13
unsigned int uint
Definition: rartypes.hpp:8
uint64_t uint64
Definition: rartypes.hpp:11
Definition: find.hpp:9
RarTime atime
Definition: find.hpp:17
RarTime mtime
Definition: find.hpp:15
uint64 Size
Definition: find.hpp:11
wchar Name[NM]
Definition: find.hpp:10
uint Flags
Definition: find.hpp:23
uint FileAttr
Definition: find.hpp:12
bool IsLink
Definition: find.hpp:14
bool Error
Definition: find.hpp:24
RarTime ctime
Definition: find.hpp:16
bool IsDir
Definition: find.hpp:13