6 #include "Mountain/core.hpp" 43 MOUNTAIN_API
static bool_t
Contains(
const std::filesystem::path& path);
49 template <Concepts::EntryT T = File>
57 MOUNTAIN_API
static void Rename(
const std::filesystem::path& path,
const std::filesystem::path& newPath);
63 MOUNTAIN_API
static void Rename(
const Pointer<Entry>& entry,
const std::filesystem::path& newPath);
68 template <Concepts::EntryT T = File>
78 template <Concepts::EntryT T = File>
85 template <Concepts::EntryT T = File>
87 static std::vector<Pointer<T>>
FindAll();
90 template <Concepts::EntryT T = File>
99 template <Concepts::EntryT T = File>
104 template <Concepts::EntryT T = File>
108 MOUNTAIN_API
static void Unload(
const std::filesystem::path& path);
117 MOUNTAIN_API
static inline std::map<std::filesystem::path, Pointer<Entry>> m_Entries;
121 #include "Mountain/file/file_manager.inl" Defines the Mountain::List class.
static MOUNTAIN_API Pointer< File > Load(std::filesystem::path path)
Creates the File corresponding to the given path and loads it.
Defines the Mountain::File class.
static MOUNTAIN_API Pointer< Directory > LoadDirectory(std::filesystem::path path)
Creates the Directory corresponding to the given path and loads it.
Defines the Mountain::Logger static class.
A dynamic array implementation. Wrapper around the std::vector class.
static MOUNTAIN_API void Rename(const std::filesystem::path &path, const std::filesystem::path &newPath)
Renames the Entry with the specified path to another path.
static MOUNTAIN_API Pointer< File > Add(std::filesystem::path path)
Creates the File corresponding to the given path without loading it.
static Pointer< T > Find()
Finds the first Entry of type T.
Custom Mountain smart pointer. Represents both a std::shared_ptr and a std::weak_ptr.
Static class used to add, load, get, or unload Files and Directories.
Defines the Mountain::Directory class.
static MOUNTAIN_API bool_t Contains(const std::filesystem::path &path)
Checks whether the FileManager contains the specified Entry path.
static Pointer< T > Get(const std::filesystem::path &path)
Tries to get the Entry with the given path.
Defines the Mountain::Pointer class.
static MOUNTAIN_API void Unload(const std::filesystem::path &path)
Unloads the Entry corresponding to the given path.
static MOUNTAIN_API Pointer< Directory > AddDirectory(std::filesystem::path path)
Creates a Directory corresponding to the given path without loading it.
static std::vector< Pointer< T > > FindAll()
Finds all Entries of type T.
static MOUNTAIN_API void UnloadAll()
Unloads all stored entries.
Contains all declarations of the Mountain Framework.