file_search.h 570 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2013 Dolphin Emulator Project
  2. // Licensed under GPLv2
  3. // Refer to the license.txt file included.
  4. #ifndef _FILESEARCH_H_
  5. #define _FILESEARCH_H_
  6. #include <string>
  7. #include <vector>
  8. class CFileSearch
  9. {
  10. public:
  11. typedef std::vector<std::string>XStringVector;
  12. CFileSearch(const XStringVector& _rSearchStrings, const XStringVector& _rDirectories);
  13. const XStringVector& GetFileNames() const;
  14. private:
  15. void FindFiles(const std::string& _searchString, const std::string& _strPath);
  16. XStringVector m_FileNames;
  17. };
  18. #endif // _FILESEARCH_H_