OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Abstract factory class, archive codec plugins can register concrete subclasses of this. More...
#include <OgreArchiveFactory.h>
Public Member Functions | |
virtual | ~ArchiveFactory () |
Archive * | createInstance (const String &name) override |
Creates a new object. | |
virtual Archive * | createInstance (const String &name, bool readOnly)=0 |
Creates a new object. | |
Public Member Functions inherited from Ogre::FactoryObj< Archive > | |
virtual | ~FactoryObj () |
virtual void | destroyInstance (Archive *ptr) |
Destroys an object which was created by this factory. | |
virtual const String & | getType () const=0 |
Returns the factory type. | |
Abstract factory class, archive codec plugins can register concrete subclasses of this.
All access to 'archives' (collections of files, compressed or just folders, maybe even remote) is managed via the abstract Archive class. Plugins are expected to provide the implementation for the actual codec itself, but because a subclass of Archive has to be created for every archive, a factory class is required to create the appropriate subclass.
|
inlinevirtual |
|
pure virtual |
Creates a new object.
name | Name of the object to create |
readOnly | whether the Archive is read only |
Implemented in Ogre::FileSystemArchiveFactory, Ogre::APKFileSystemArchiveFactory, Ogre::ZipArchiveFactory, and Ogre::EmbeddedZipArchiveFactory.
Creates a new object.
name | Name of the object to create |
Implements Ogre::FactoryObj< Archive >.
References createInstance().
Referenced by createInstance().