Wrapper for the FindFirstFile API. More...
#include <util.h>
Classes | |
class | iterator |
iterator for STL algorithm integration More... | |
Public Member Functions | |
FileSearch (const tstring &searchPattern) | |
Starts the search. More... | |
iterator | begin () |
STL algorithms integration. | |
const FileSearchItem & | Data () const |
Data of the current file. | |
bool | Done () const |
True if the iteration is at the end, meaning further calls to next won't work. | |
iterator | end () |
STL algorithms integration. | |
bool | Next () |
Iterate to next file in the search. | |
bool | Ok () const |
True if the search found at least one file. | |
Wrapper for the FindFirstFile API.
This should be much simpler to use than the API. It can fit inside a for-loop, it support iterators and even the new C++11 foreach is possible.
|
inline |
Starts the search.
searchPattern | see the FindFirstFile API for the possible syntax |