|
static MOUNTAIN_API Pointer< File > | Add (std::filesystem::path path) |
| Creates the File corresponding to the given path without loading it.
|
|
static MOUNTAIN_API Pointer< File > | Load (std::filesystem::path path) |
| Creates the File corresponding to the given path and loads it.
|
|
static MOUNTAIN_API Pointer< Directory > | AddDirectory (std::filesystem::path path) |
| Creates a Directory corresponding to the given path without loading it.
|
|
static MOUNTAIN_API Pointer< Directory > | LoadDirectory (std::filesystem::path path) |
| Creates the Directory corresponding to the given path and loads it. More...
|
|
static MOUNTAIN_API bool_t | Contains (const std::filesystem::path &path) |
| Checks whether the FileManager contains the specified Entry path.
|
|
template<Concepts::EntryT T = File> |
static Pointer< T > | Get (const std::filesystem::path &path) |
| Tries to get the Entry with the given path . More...
|
|
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. More...
|
|
static MOUNTAIN_API void | Rename (const Pointer< Entry > &entry, const std::filesystem::path &newPath) |
| Renames the specified Entry to another path. More...
|
|
template<Concepts::EntryT T = File> |
static Pointer< T > | Find () |
| Finds the first Entry of type T . More...
|
|
template<Concepts::EntryT T = File> |
static Pointer< T > | Find (std::function< bool_t(Pointer< T >)> &&predicate) |
| Finds a specific Entry based on a predicate. More...
|
|
template<Concepts::EntryT T = File> |
static std::vector< Pointer< T > > | FindAll () |
| Finds all Entries of type T . More...
|
|
template<Concepts::EntryT T = File> |
static void | FindAll (List< Pointer< T >> *result) |
|
template<Concepts::EntryT T = File> |
static List< Pointer< T > > | FindAll (std::function< bool_t(Pointer< T >)> &&predicate) |
| Finds a list of Entry "Entries" based on a predicate. More...
|
|
template<Concepts::EntryT T = File> |
static void | FindAll (std::function< bool_t(Pointer< T >)> &&predicate, List< Pointer< T >> *result) |
|
static MOUNTAIN_API void | Unload (const std::filesystem::path &path) |
| Unloads the Entry corresponding to the given path.
|
|
static MOUNTAIN_API void | Unload (const Pointer< Entry > &entry) |
| Unloads the given Entry.
|
|
static MOUNTAIN_API void | UnloadAll () |
| Unloads all stored entries.
|
|
Static class used to add, load, get, or unload Files and Directories.
It contains all wrapper instances of the File and Directory classes. These are either added or loaded using the corresponding function: FileManager::Add and FileManager::Preload for Files,and FileManager::AddDirectory and FileManager::LoadDirectory for Directories.
Definition at line 23 of file file_manager.hpp.