OGRE
1.10.12
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 () |
virtual Archive * | createInstance (const String &name, bool readOnly)=0 |
Creates a new object. More... | |
virtual Archive * | createInstance (const String &name) |
Creates a new object. More... | |
virtual void | destroyInstance (Archive *ptr)=0 |
Destroys an object which was created by this factory. More... | |
virtual const String & | getType () const=0 |
Returns the factory type. More... | |
Abstract factory class, archive codec plugins can register concrete subclasses of this.
|
inlinevirtual |
|
pure virtual |
Creates a new object.
name | Name of the object to create |
readOnly | whether the Archive is read only |
Implemented in Ogre::EmbeddedZipArchiveFactory, Ogre::FileSystemArchiveFactory, Ogre::ZipArchiveFactory, Ogre::APKFileSystemArchiveFactory, and Ogre::APKZipArchiveFactory.
Creates a new object.
name | Name of the object to create |
Implements Ogre::FactoryObj< Archive >.
References createInstance().
Referenced by createInstance().
|
pure virtualinherited |
Returns the factory type.
Implemented in Ogre::EmbeddedZipArchiveFactory, Ogre::FileSystemArchiveFactory, Ogre::ZipArchiveFactory, Ogre::APKFileSystemArchiveFactory, and Ogre::APKZipArchiveFactory.
|
pure virtualinherited |
Destroys an object which was created by this factory.
ptr | Pointer to the object to destroy |
Implemented in Ogre::FileSystemArchiveFactory, Ogre::ZipArchiveFactory, and Ogre::APKFileSystemArchiveFactory.