#include <gauge3d/files/directory.h>
Inherits GAUGE3D::GObject.
Inherited by GAUGE3D::GDiskDirectory, and GAUGE3D::GVirtualDirectory.
Public Methods | |
virtual | ~GDirectory () |
virtual GArray<GString> | ListFiles ()=0 |
Get a list of all the files in the directory. | |
virtual GArray<GString> | ListSubdirs ()=0 |
Get a list of all the subdirectories of the directory. | |
virtual pGFile | OpenFile (GString name)=0 |
Get a pointer to a file in the directory. More... | |
virtual pGDirectory | OpenSubdir (GString name)=0 |
Get a pointer to a sub directory in the directory. More... | |
virtual pGFile | AddFile (GString name)=0 |
Create a new file in the directory. More... | |
virtual pGDirectory | AddSubdir (GString name)=0 |
Create a new sub directory to the directory. More... | |
virtual void | RemoveFile (GString name)=0 |
Remove a file from the dircetory. | |
virtual void | RemoveDirectory (GString name)=0 |
Remove a sub directory from the directory (recursively if necessary). |
This could represents a directory on the hard drive, but it could also represent anything from a compressed archive to an ftp site. Archive plugins should be derived from this.
|
Get a pointer to a file in the directory.
Reimplemented in GAUGE3D::GDiskDirectory, and GAUGE3D::GVirtualDirectory. |
|
Get a pointer to a sub directory in the directory.
Reimplemented in GAUGE3D::GDiskDirectory, and GAUGE3D::GVirtualDirectory. |
|
Create a new file in the directory.
Reimplemented in GAUGE3D::GDiskDirectory, and GAUGE3D::GVirtualDirectory. |
|
Create a new sub directory to the directory.
Reimplemented in GAUGE3D::GDiskDirectory, and GAUGE3D::GVirtualDirectory. |