struct IFileSearch {virtual bool operator()(const WIN32_FIND_DATA& wfd) = 0;};
void File_Search(const char* fdPath, IFileSearch& i_search, vector<string>& vec_find, BOOL bFindSubDir = FALSE, int find_sleep = 0);
void __DoTest()
{
struct File_Search_ABC:public __LSL_Fun::IFileSearch
{
bool operator()(const WIN32_FIND_DATA& wfd)
{
if(0 == strcmp("abc.txt", wfd.cFileName))
return true;
else
return false;
}
};
vector<string> vec_finds;
__LSL_Fun::File_Search("d:\\", File_Search_ABC(), vec_finds, TRUE);
}