CFileUtility.h 719 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. /*
  3. * CFileUtility.cpp, part of VCMI engine
  4. *
  5. * Authors: listed in file AUTHORS in main folder
  6. *
  7. * License: GNU General Public License v2.0 or later
  8. * Full text of license available in license.txt file, in main folder
  9. *
  10. */
  11. /// Struct which stores name, date and a value which says if the file is located in LOD
  12. struct FileInfo
  13. {
  14. std::string name; // file name with full path and extension
  15. std::time_t date;
  16. bool inLod; //tells if this file is located in Lod
  17. };
  18. class DLL_LINKAGE CFileUtility
  19. {
  20. public:
  21. CFileUtility(void);
  22. ~CFileUtility(void);
  23. static void getFilesWithExt(std::vector<FileInfo> &out, const std::string &dirname, const std::string &ext);
  24. };