utils.h 713 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * @author Alexis Maiquez Murcia <almamu@almamu.com>
  3. */
  4. #ifndef WALLENGINE_RESOLVER_H
  5. #define WALLENGINE_RESOLVER_H
  6. #include <string>
  7. #include <vector>
  8. #include <irrlicht/path.h>
  9. #include <nlohmann/json.hpp>
  10. namespace WallpaperEngine
  11. {
  12. using json = nlohmann::json;
  13. namespace fs
  14. {
  15. /**
  16. * Custom file resolver to limit our searches to specific folders
  17. */
  18. class utils
  19. {
  20. public:
  21. /**
  22. * Loads a full file into an std::string
  23. *
  24. * @param file
  25. * @return
  26. */
  27. static std::string loadFullFile (irr::io::path file);
  28. };
  29. };
  30. }
  31. #endif //WALLENGINE_RESOLVER_H