diff options
Diffstat (limited to 'src/common/file_search.h')
| -rw-r--r-- | src/common/file_search.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/common/file_search.h b/src/common/file_search.h new file mode 100644 index 000000000..2a9ff801f --- /dev/null +++ b/src/common/file_search.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | // Copyright 2013 Dolphin Emulator Project | ||
| 2 | // Licensed under GPLv2 | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | |||
| 6 | #ifndef _FILESEARCH_H_ | ||
| 7 | #define _FILESEARCH_H_ | ||
| 8 | |||
| 9 | #include <string> | ||
| 10 | #include <vector> | ||
| 11 | |||
| 12 | class CFileSearch | ||
| 13 | { | ||
| 14 | public: | ||
| 15 | typedef std::vector<std::string>XStringVector; | ||
| 16 | |||
| 17 | CFileSearch(const XStringVector& _rSearchStrings, const XStringVector& _rDirectories); | ||
| 18 | const XStringVector& GetFileNames() const; | ||
| 19 | |||
| 20 | private: | ||
| 21 | |||
| 22 | void FindFiles(const std::string& _searchString, const std::string& _strPath); | ||
| 23 | |||
| 24 | XStringVector m_FileNames; | ||
| 25 | }; | ||
| 26 | |||
| 27 | #endif // _FILESEARCH_H_ | ||
| 28 | |||