CFileUtility.h 667 B

123456789101112131415161718192021222324252627282930
  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 URI (upper case, no extension)
  15. std::time_t date;
  16. };
  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. };
  25. */