11 std::string m_sFileName;
12 DWORD m_dwFileAttributes;
18 CFileFindData(
const std::string& sFileName, DWORD dwFileSize = 0, DWORD dwFileAttributes = 0,
const FILETIME* ftLastWriteTime = 0,
const FILETIME* ftCreationTime = 0,
const FILETIME* ftLastAccessTime = 0);
20 bool IsDirectory()
const;
28 PE_CORE_DECL ~CSearchResult();
31 PE_CORE_DECL
void Release();
34 PE_CORE_DECL
const std::string& GetRootPath();
37 PE_CORE_DECL
int GetNumOfResult();
43 PE_CORE_DECL
bool AddResult(
const std::string& sItem, DWORD dwFileSize = 0, DWORD dwFileAttributes = 0,
const FILETIME* ftLastWriteTime = 0,
const FILETIME* ftCreationTime = 0,
const FILETIME* ftLastAccessTime = 0);
49 PE_CORE_DECL
const std::string& GetItem(
int nIndex);
57 void InitSearch(
const std::string& sRootPath,
int nSubLevel = 0,
int nMaxFilesNum = 50,
int nFrom = 0);
59 void SetRootPath(
const std::string& sRoot);
61 std::string m_rootPath;
62 std::vector<CFileFindData> m_results;
63 std::set<std::string> m_filenames;
file find item
Definition: FileSearchResult.h:9
different physics engine has different winding order.
Definition: EventBinding.h:32
int m_nSubLevel
how many sub folders of sRootPath to look into. default value is 0, which only searches the sRootPath...
Definition: FileSearchResult.h:65
int m_nFrom
only contains results from nFrom to (nFrom+nMaxFilesNum)
Definition: FileSearchResult.h:69
Definition: PEtypes.h:145
it represents the search result.
Definition: FileSearchResult.h:24
int m_nMaxFilesNum
one can limit the total number of files in the search result. Default value is 50. the search will stop at this value even there are more matching files.
Definition: FileSearchResult.h:67