32 #ifndef MemoryDirectory_INCLUDE_ONCE 33 #define MemoryDirectory_INCLUDE_ONCE 63 virtual bool setPath(
const String& name);
71 bool removeFile(
const String& name);
79 void listFilesRecursive( std::vector<String>& file_list )
const;
81 void listSubDirs(std::vector<String>& dirs,
bool append=
false)
const;
87 void listFiles(std::vector<String>& file_list,
bool append=
false)
const;
93 std::map< String, ref<MemoryFile> >
mFiles;
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
MemoryDirectory(const String &path=".")
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Visualization Library main namespace.
virtual ref< VirtualFile > file(const String &name) const
Returns the VirtualFile with the given name if any, NULL otherwise.
A VirtualFile to manipulate files stored in memory.
Abstact class representing a directory of files.
ref< VirtualDirectory > subDir(const String &subdir_name) const
The ref<> class is used to reference-count an Object.
A VirtualDirectory to manipulate directories stored in memory.
std::map< String, ref< MemoryFile > > mFiles