Irrlicht 3D Engine
irr::io::IArchiveLoader Class Reference

Class which is able to create an archive from a file. More...

#include <IFileArchive.h>

+ Inheritance diagram for irr::io::IArchiveLoader:

List of all members.

Public Member Functions


Detailed Description

Class which is able to create an archive from a file.

If you want the Irrlicht Engine be able to load archives of currently unsupported file formats (e.g .wad), then implement this and add your new Archive loader with IFileSystem::addArchiveLoader() to the engine.

Definition at line 91 of file IFileArchive.h.


Member Function Documentation

virtual IFileArchive* irr::io::IArchiveLoader::createArchive ( const path filename,
bool  ignoreCase,
bool  ignorePaths 
) const [pure virtual]

Creates an archive from the filename.

Parameters:
filenameFile to use.
ignoreCaseSearching is performed without regarding the case
ignorePathsFiles are searched for without checking for the directories
Returns:
Pointer to newly created archive, or 0 upon error.
virtual IFileArchive* irr::io::IArchiveLoader::createArchive ( io::IReadFile file,
bool  ignoreCase,
bool  ignorePaths 
) const [pure virtual]

Creates an archive from the file.

Parameters:
fileFile handle to use.
ignoreCaseSearching is performed without regarding the case
ignorePathsFiles are searched for without checking for the directories
Returns:
Pointer to newly created archive, or 0 upon error.
virtual bool irr::io::IArchiveLoader::isALoadableFileFormat ( const path filename) const [pure virtual]

Check if the file might be loaded by this class.

Check based on the file extension (e.g. ".zip")

Parameters:
filenameName of file to check.
Returns:
True if file seems to be loadable.
virtual bool irr::io::IArchiveLoader::isALoadableFileFormat ( io::IReadFile file) const [pure virtual]

Check if the file might be loaded by this class.

This check may look into the file.

Parameters:
fileFile handle to check.
Returns:
True if file seems to be loadable.
virtual bool irr::io::IArchiveLoader::isALoadableFileFormat ( E_FILE_ARCHIVE_TYPE  fileType) const [pure virtual]

Check to see if the loader can create archives of this type.

Check based on the archive type.

Parameters:
fileTypeThe archive type to check.
Returns:
True if the archile loader supports this type, false if not

The documentation for this class was generated from the following file: