#ifndef VFS_DIR_INTERNAL_H #define VFS_DIR_INTERNAL_H #include "VFSDir.h" #include VFS_NAMESPACE_START class Root; class DirView; // Internal class, not to be used outside class InternalDir : public DirBase { friend class Root; public: bool fillView(const char *path, DirView& view); // virtual overrides (final) const char *getType() const { return "InternalDir"; } void forEachFile(FileEnumCallback f, void *user = NULL, bool safe = false); void forEachDir(DirEnumCallback f, void *user = NULL, bool safe = false); File *getFileByName(const char *fn, bool lazyLoad = true); DirBase *getDirByName(const char *fn, bool lazyLoad = true, bool useSubtrees = true); void close(); protected: // virtual overrides(final) InternalDir *createNew(const char *dir) const; bool _addToView(char *path, DirView& view); private: InternalDir(const char *); virtual ~InternalDir(); typedef std::vector > MountedDirs; MountedDirs _mountedDirs; void _clearDirs(); void _clearMounts(); void _addMountDir(CountedPtr d); void _removeMountDir(DirBase *d); }; VFS_NAMESPACE_END #endif