Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930
  1. /*!
  2. * \file include/utils/File.h
  3. * \brief Recursive file-system walking utilities
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _UTILS_FILE_H_
  8. #define _UTILS_FILE_H_
  9. #include <memory>
  10. #include <string>
  11. class Folder;
  12. class File {
  13. public:
  14. File(std::string file);
  15. ~File();
  16. std::shared_ptr<Folder> getParent();
  17. private:
  18. std::string name;
  19. std::string path;
  20. std::weak_ptr<Folder> parent;
  21. };
  22. #endif