enderalse/source/fs.dll/common/IDirectoryIterator.h

25 lines
470 B
C
Raw Normal View History

2021-10-06 00:45:46 +00:00
#pragma once
class IDirectoryIterator
{
public:
IDirectoryIterator(const char * path, const char * match = NULL);
virtual ~IDirectoryIterator();
WIN32_FIND_DATA * Get(void) { return &m_result; }
void GetFullPath(char * out, UInt32 outLen);
std::string GetFullPath(void);
void Next(void);
bool Done(void);
private:
IDirectoryIterator(); // undefined, disallow
HANDLE m_searchHandle;
WIN32_FIND_DATA m_result;
bool m_done;
char m_path[MAX_PATH];
};