SubDirectory.h 847 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // Created by Иван_Архипов on 07.11.2017.
  3. //
  4. #ifndef LOTRO_DAT_PATCHER_SUBDIRECTORY_H
  5. #define LOTRO_DAT_PATCHER_SUBDIRECTORY_H
  6. #include <vector>
  7. #include <map>
  8. #include <unordered_map>
  9. extern "C++"
  10. {
  11. namespace LOTRO_DAT
  12. {
  13. class DatFile;
  14. class DatException;
  15. class BinaryData;
  16. class Subfile;
  17. class SubDirectory
  18. {
  19. public:
  20. SubDirectory();
  21. SubDirectory(long long offset, DatFile *dat, long long max_subdirs = 63);
  22. void MakeDictionary(std::unordered_map<long long, Subfile*> &dict);
  23. private:
  24. void MakeSubDirectories();
  25. void MakeSubFiles();
  26. DatFile *dat_;
  27. long long offset_;
  28. long long max_subdirs_;
  29. std::vector<SubDirectory> subdirs_;
  30. std::vector<Subfile> subfiles_;
  31. };
  32. }
  33. };
  34. #endif //LOTRO_DAT_PATCHER_SUBDIRECTORY_H