CFileUtility.h 738 B

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