fileDefinition.h 668 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include <map>
  3. #include <string>
  4. #include <vector>
  5. #include <deque>
  6. #include "exports.h"
  7. typedef std::deque<std::string> PathParts;
  8. namespace craftlab::fakeraid
  9. {
  10. typedef std::string CheckSum;
  11. struct File
  12. {
  13. std::string fileName;
  14. PathParts directory;
  15. bool isDir;
  16. int repositoryIndex;
  17. };
  18. struct FileAndSum: File
  19. {
  20. CheckSum checksum;
  21. };
  22. typedef std::vector<FileAndSum> FileAndSumList;
  23. struct FileAndSumListByRepositoryIndex
  24. {
  25. std::vector<FileAndSumList> FileAndSumListByRepositoryIndex;
  26. std::map<std::string, FileAndSum> FileList;
  27. std::string lastInsertedFilename;
  28. ENGINEAPI_EXPORT size_t ExistingFileCount() const;
  29. };
  30. }