Public Member Functions | |
IMount () | |
Constructor. | |
virtual | ~IMount () |
Destructor. | |
virtual IFile * | open (std::string path, std::string filename, bool write=false, bool append=false)=0 |
Opens a file. | |
virtual bool | exists (std::string filename)=0 |
Checks if a file / directory exists. | |
virtual bool | isDirectory (std::string filename)=0 |
Checks to see if the path given is a directory. | |
virtual std::vector< std::string > | listDir (std::string path)=0 |
Returns a list of files/directories in the directory. | |
virtual unsigned int | size (std::string filename)=0 |
Returns the size of a file. |
This object is what actaully handles files in the File Manager. This is subclassed to handle seperate types of files, from those on the harddisk to those over the internet. Once you have an instance of this class, you mount it using IFileManager::mount(). This is not classified as an IObject because it must not interfere with EManagerType values during initialization.
Definition at line 42 of file IFileManager.h.
|
Constructor.
Definition at line 46 of file IFileManager.h. |
|
Destructor.
Definition at line 49 of file IFileManager.h. |
|
Checks if a file / directory exists. Checks to see if the given VFS path exists.
|
|
Checks to see if the path given is a directory. This is for checking the directoryness of a file. Kinda useful!
|
|
Returns a list of files/directories in the directory. This is to check what files there are in the directory given.
|
|
Opens a file. Opens the file at the VFS path given. |
|
Returns the size of a file. Directories return 0.
|