RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
irrklang::IFileFactory Class Referenceabstract

Interface to overwrite file access in irrKlang. More...

#include <ik_IFileFactory.h>

Inheritance diagram for irrklang::IFileFactory:
irrklang::IRefCounted

Public Member Functions

virtual ~IFileFactory ()
 
virtual IFileReadercreateFileReader (const ik_c8 *filename)=0
 Opens a file for read access. More...
 
- Public Member Functions inherited from irrklang::IRefCounted
 IRefCounted ()
 Constructor. More...
 
virtual ~IRefCounted ()
 Destructor. More...
 
void grab ()
 
bool drop ()
 

Detailed Description

Interface to overwrite file access in irrKlang.

Derive your own class from IFileFactory, overwrite the createFileReader() method and return your own implemented IFileReader to overwrite file access of irrKlang. Use ISoundEngine::addFileFactory() to let irrKlang know about your class. Example code can be found in the tutorial 04.OverrideFileAccess.

Definition at line 20 of file ik_IFileFactory.h.

Constructor & Destructor Documentation

virtual irrklang::IFileFactory::~IFileFactory ( )
inlinevirtual

Definition at line 24 of file ik_IFileFactory.h.

Member Function Documentation

virtual IFileReader* irrklang::IFileFactory::createFileReader ( const ik_c8 filename)
pure virtual

Opens a file for read access.

Derive your own class from IFileFactory, overwrite this method and return your own implemented IFileReader to overwrite file access of irrKlang. Use ISoundEngine::addFileFactory() to let irrKlang know about your class. Example code can be found in the tutorial 04.OverrideFileAccess.

Parameters
filenameName of file to open.
Returns
Returns a pointer to the created file interface. The returned pointer should be dropped when no longer needed. See IRefCounted::drop() for more information. Returns 0 if file cannot be opened.

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