SubDirectory.h 788 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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);
  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. std::vector<SubDirectory> subdirs_;
  29. std::vector<Subfile> subfiles_;
  30. };
  31. }
  32. };
  33. #endif //LOTRO_DAT_PATCHER_SUBDIRECTORY_H