5#ifndef __I_FILE_ARCHIVE_H_INCLUDED__
6#define __I_FILE_ARCHIVE_H_INCLUDED__
20 FILESYSTEM_NATIVE = 0,
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:50
Class which is able to create an archive from a file.
Definition IFileArchive.h:95
virtual IFileArchive * createArchive(const path &filename, bool ignoreCase, bool ignorePaths) const =0
Creates an archive from the filename.
virtual IFileArchive * createArchive(io::IReadFile *file, bool ignoreCase, bool ignorePaths) const =0
Creates an archive from the file.
virtual bool isALoadableFileFormat(const path &filename) const =0
Check if the file might be loaded by this class.
virtual bool isALoadableFileFormat(io::IReadFile *file) const =0
Check if the file might be loaded by this class.
virtual bool isALoadableFileFormat(E_FILE_ARCHIVE_TYPE fileType) const =0
Check to see if the loader can create archives of this type.
The FileArchive manages archives and provides access to files inside them.
Definition IFileArchive.h:54
virtual const io::path & getArchiveName() const =0
return the name (id) of the file Archive
virtual IReadFile * createAndOpenFile(u32 index)=0
Opens a file based on its position in the file list.
virtual IReadFile * createAndOpenFile(const path &filename)=0
Opens a file based on its name.
virtual const IFileList * getFileList() const =0
Returns the complete file tree.
core::stringc Password
An optionally used password string.
Definition IFileArchive.h:86
virtual E_FILE_ARCHIVE_TYPE getType() const
get the archive type
Definition IFileArchive.h:76
Provides a list of files and folders.
Definition IFileList.h:20
Interface providing read acess to a file.
Definition IReadFile.h:18
string< c8 > stringc
Typedef for character strings.
Definition irrString.h:1373
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition EAttributes.h:11
EFileSystemType
FileSystemType: which Filesystem should be used for e.g. browsing.
Definition IFileArchive.h:19
core::string< fschar_t > path
Type used for all file system related strings.
Definition path.h:17
E_FILE_ARCHIVE_TYPE
Contains the different types of archives.
Definition IFileArchive.h:26
@ EFAT_TAR
A Tape ARchive.
Definition IFileArchive.h:43
@ EFAT_FOLDER
A virtual directory.
Definition IFileArchive.h:34
@ EFAT_UNKNOWN
The type of this archive is unknown.
Definition IFileArchive.h:49
@ EFAT_WAD
A wad Archive, Quake2, Halflife.
Definition IFileArchive.h:46
@ EFAT_ZIP
A PKZIP archive.
Definition IFileArchive.h:28
@ EFAT_GZIP
A gzip archive.
Definition IFileArchive.h:31
@ EFAT_PAK
An ID Software PAK archive.
Definition IFileArchive.h:37
@ EFAT_NPK
A Nebula Device archive.
Definition IFileArchive.h:40
Everything in the Irrlicht Engine can be found in this namespace.
Definition Skylicht.h:33
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58