OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
Abstract factory class. More...
#include <OgreFactoryObj.h>
Public Member Functions | |
virtual | ~FactoryObj () |
virtual T * | createInstance (const String &name)=0 |
Creates a new object. More... | |
virtual void | destroyInstance (T *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.
Does nothing by itself, but derived classes can add functionality.
|
inlinevirtual |
|
pure virtual |
Returns the factory type.
Implemented in Ogre::BillboardParticleRendererFactory, Ogre::APKFileSystemArchiveFactory, Ogre::EmbeddedZipArchiveFactory, Ogre::ZipArchiveFactory, and Ogre::FileSystemArchiveFactory.
Referenced by Ogre::FactoryObj< ParticleSystemRenderer >::~FactoryObj().
|
pure virtual |
Creates a new object.
name | Name of the object to create |
Implemented in Ogre::BillboardParticleRendererFactory, and Ogre::ArchiveFactory.
Referenced by Ogre::FactoryObj< ParticleSystemRenderer >::~FactoryObj().
|
pure virtual |
Destroys an object which was created by this factory.
ptr | Pointer to the object to destroy |
Implemented in Ogre::BillboardParticleRendererFactory, Ogre::APKFileSystemArchiveFactory, Ogre::ZipArchiveFactory, and Ogre::FileSystemArchiveFactory.
Referenced by Ogre::FactoryObj< ParticleSystemRenderer >::~FactoryObj().