27 #ifndef INCLUDED_VFS_TREE 28 #define INCLUDED_VFS_TREE 85 bool DeleteTree(
const VfsFile& file);
100 void DeleteSubtree(
const VfsFile& file);
116 void RemoveFile(
const VfsPath& name);
139 return m_subdirectories;
149 return m_realDirectory;
157 bool ShouldPopulate();
162 void RequestRepopulate();
194 #endif // #ifndef INCLUDED_VFS_TREE std::wstring FileDescription(const VfsFile &file)
Definition: vfs_tree.cpp:205
size_t m_size
Definition: vfs_tree.h:69
const VfsSubdirectories & Subdirectories() const
Definition: vfs_tree.h:137
volatile intptr_t m_shouldPopulate
Definition: vfs_tree.h:175
PRealDirectory m_realDirectory
Definition: vfs_tree.h:174
VfsPath m_name
Definition: vfs_tree.h:68
Definition: vfs_tree.h:78
VfsFiles m_files
Definition: vfs_tree.h:171
const PIFileLoader & Loader() const
Definition: vfs_tree.h:62
std::shared_ptr< IFileLoader > PIFileLoader
Definition: file_loader.h:39
VfsSubdirectories m_subdirectories
Definition: vfs_tree.h:172
void DirectoryDescriptionR(std::wstring &descriptions, const VfsDirectory &directory, size_t indentLevel)
append each directory's files' description to the given string.
Definition: vfs_tree.cpp:237
size_t Priority() const
Definition: vfs_tree.h:57
const VfsFiles & Files() const
Definition: vfs_tree.h:132
size_t m_priority
Definition: vfs_tree.h:72
const VfsPath & Name() const
Definition: vfs_tree.h:42
const PRealDirectory & AssociatedDirectory() const
Definition: vfs_tree.h:147
std::map< VfsPath, VfsFile > VfsFiles
Definition: vfs_tree.h:88
size_t Size() const
Definition: vfs_tree.h:47
std::shared_ptr< RealDirectory > PRealDirectory
Definition: real_directory.h:73
time_t m_mtime
Definition: vfs_tree.h:70
Definition: vfs_tree.h:37
std::map< VfsPath, VfsDirectory > VfsSubdirectories
Definition: vfs_tree.h:89
time_t MTime() const
Definition: vfs_tree.h:52
PIFileLoader m_loader
Definition: vfs_tree.h:74
VfsFile(const VfsPath &name, size_t size, time_t mtime, size_t priority, const PIFileLoader &provider)
Definition: vfs_tree.cpp:39
std::wstring FileDescriptions(const VfsDirectory &directory, size_t indentLevel)
Definition: vfs_tree.cpp:217