arsa
2.7
|
The FileArchive manages archives and provides access to files inside them. More...
#include <IFileArchive.h>
Public Member Functions | |
virtual IReadFile * | createAndOpenFile (const path &filename)=0 |
Opens a file based on its name. More... | |
virtual IReadFile * | createAndOpenFile (u32 index)=0 |
Opens a file based on its position in the file list. More... | |
virtual const IFileList * | getFileList () const =0 |
Returns the complete file tree. More... | |
virtual E_FILE_ARCHIVE_TYPE | getType () const |
get the archive type More... | |
virtual const io::path & | getArchiveName () const =0 |
return the name (id) of the file Archive More... | |
virtual void | addDirectoryToFileList (const io::path &filename) |
Add a directory in the archive and all it's files to the FileList. More... | |
Public Member Functions inherited from irr::IReferenceCounted | |
IReferenceCounted () | |
Constructor. More... | |
virtual | ~IReferenceCounted () |
Destructor. More... | |
void | grab () const |
Grabs the object. Increments the reference counter by one. More... | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. More... | |
s32 | getReferenceCount () const |
Get the reference count. More... | |
const c8 * | getDebugName () const |
Returns the debug name of the object. More... | |
Public Attributes | |
core::stringc | Password |
An optionally used password string. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from irr::IReferenceCounted | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. More... | |
The FileArchive manages archives and provides access to files inside them.
Definition at line 56 of file IFileArchive.h.
|
inlinevirtual |
Add a directory in the archive and all it's files to the FileList.
Only needed for file-archives which have no information about their own directory structure. In that case the user must add directories manually. Currently this is necessary for archives of type EFAT_ANDROID_ASSET. The root-path itself is already set by the engine. If directories are not added manually opening files might still work, but checks if file exists will fail.
Definition at line 92 of file IFileArchive.h.
Opens a file based on its name.
Creates and returns a new IReadFile for a file in the archive.
filename | The file to open |
Opens a file based on its position in the file list.
Creates and returns
index | The zero based index of the file. |
return the name (id) of the file Archive
Returns the complete file tree.
|
inlinevirtual |
core::stringc irr::io::IFileArchive::Password |
An optionally used password string.
This variable is publicly accessible from the interface in order to avoid single access patterns to this place, and hence allow some more obscurity.
Definition at line 99 of file IFileArchive.h.