#include <gauge3d/files/virtualdirectory.h>
Inherits GAUGE3D::GDirectory.
Public Methods | |
GVirtualDirectory () | |
virtual | ~GVirtualDirectory () |
virtual GArray<GString> | ListFiles () |
Get a list of all the files in the directory. | |
virtual GArray<GString> | ListSubdirs () |
Get a list of all the subdirectories of the directory. | |
virtual pGFile | OpenFile (GString name) |
Get a pointer to a file in the directory. More... | |
virtual pGDirectory | OpenSubdir (GString name) |
Get a pointer to a sub directory in the directory. More... | |
virtual pGFile | AddFile (GString name) |
Create a new file in the directory. More... | |
virtual pGDirectory | AddSubdir (GString name) |
Create a new sub directory to the directory. More... | |
virtual void | RemoveFile (GString name) |
Remove a file from the dircetory. | |
virtual void | RemoveDirectory (GString name) |
Remove a sub directory from the directory (recursively if necessary). | |
void | AddFile (GString name,pGFile file) |
Link a file into the virtual directory. More... | |
void | AddSubdir (GString name,pGVirtualDirectory subdir) |
Link a sub directory into the virtual directory. More... |
A virtual directory exists only in RAM, and files within the directory are simply pointers to any sort of object derived from GFile. These may be disk files, temporary files, files in archives, etc.
|
Get a pointer to a file in the directory.
Reimplemented from GAUGE3D::GDirectory. |
|
Get a pointer to a sub directory in the directory.
Reimplemented from GAUGE3D::GDirectory. |
|
Create a new file in the directory.
Reimplemented from GAUGE3D::GDirectory. |
|
Create a new sub directory to the directory.
Reimplemented from GAUGE3D::GDirectory. |
|
Link a file into the virtual directory.
|
|
Link a sub directory into the virtual directory.
|