CDirectory.h 499 B

1234567891011121314151617181920212223242526
  1. //
  2. // Created by almamu on 8/8/21.
  3. //
  4. #pragma once
  5. #include <string>
  6. #include <stdexcept>
  7. #include <map>
  8. #include "CContainer.h"
  9. #include "CFileEntry.h"
  10. namespace WallpaperEngine::Assets
  11. {
  12. class CDirectory : public CContainer
  13. {
  14. public:
  15. CDirectory (std::string basepath);
  16. ~CDirectory ();
  17. void* readFile (std::string filename, uint32_t* length) override;
  18. private:
  19. std::string m_basepath;
  20. std::map <std::string, CFileEntry> m_cache;
  21. };
  22. };