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... | |
![]() | |
IReferenceCounted () | |
Constructor. More... | |
virtual | ~IReferenceCounted () |
Destructor. More... | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. More... | |
const c8 * | getDebugName () const |
Returns the debug name of the object. More... | |
s32 | getReferenceCount () const |
Get the reference count. More... | |
void | grab () const |
Grabs the object. Increments the reference counter by one. More... | |
Public Attributes | |
core::stringc | Password |
An optionally used password string. More... | |
Additional Inherited Members | |
![]() | |
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 53 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. |
|
pure virtual |
Returns the complete file tree.
|
inlinevirtual |
get the archive type
Definition at line 76 of file IFileArchive.h.
References irr::io::EFAT_UNKNOWN.
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 83 of file IFileArchive.h.