irrklang::IFileFactory Class Reference

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

#include <ik_IFileFactory.h>

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

List of all members.

Public Member Functions

virtual ~IFileFactory ()
virtual IFileReadercreateFileReader (const ik_c8 *filename)=0
 Opens a file for read access.

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.


Constructor & Destructor Documentation

virtual irrklang::IFileFactory::~IFileFactory (  )  [inline, virtual]

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:
filename Name 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

irrKlang Audio Library
The irrKlang Engine Documentation © 2003-2014 by Nikolaus Gebhardt. Generated by Doxygen (1.6.1)