5 #include "Mountain/core.hpp" 24 MOUNTAIN_API
explicit Directory(std::filesystem::path&& filepath);
29 DEFAULT_COPY_MOVE_OPERATIONS(Directory)
32 MOUNTAIN_API bool_t
Load()
override;
39 MOUNTAIN_API
void Unload()
override;
46 MOUNTAIN_API
const std::vector<Pointer<Entry>>&
GetChildEntries()
const;
54 MOUNTAIN_API
const std::vector<Pointer<File>>&
GetChildFiles()
const;
71 void SetName(
const std::string& newName)
override;
74 std::vector<Pointer<Entry>> m_ChildEntries;
75 std::vector<Pointer<File>> m_ChildFiles;
76 std::vector<Pointer<Directory>> m_ChildDirectories;
Defines the Mountain::Entry class.
MOUNTAIN_API const std::vector< Pointer< File > > & GetChildFiles() const
Returns all the child Files of this Directory.
Defines the Mountain::File class.
File system entry. Can be either a File or a Directory.
MOUNTAIN_API const std::vector< Pointer< Directory > > & GetChildDirectories() const
Returns all the child Directories of this Directory.
MOUNTAIN_API Directory(std::filesystem::path &&filepath)
Constructs a Directory corresponding to the given path.
MOUNTAIN_API void OpenInExplorer() const override
Opens this Directory in the file explorer.
MOUNTAIN_API ~Directory() override=default
Default Directory destruction.
MOUNTAIN_API void Unload() override
Unloads the contents of this Directory.
MOUNTAIN_API bool_t Load() override
Loads the contents of this Directory in the FileManager.
Defines the Mountain::Pointer class.
MOUNTAIN_API const std::vector< Pointer< Entry > > & GetChildEntries() const
Returns all the child Entries of this Directory.
void SetName(const std::string &newName) override
Sets the name of this Directory.
Defines a directory on the filesystem.
Contains all declarations of the Mountain Framework.