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.
Definition at line 44 of file OgreFactoryObj.h.
|
virtual |
Definition at line 47 of file OgreFactoryObj.h.
|
pure virtual |
Creates a new object.
| name | Name of the object to create |
Implemented in Ogre::BillboardParticleRendererFactory, and Ogre::ArchiveFactory.
|
pure virtual |
Destroys an object which was created by this factory.
| ptr | Pointer to the object to destroy |
Implemented in Ogre::BillboardParticleRendererFactory, Ogre::FileSystemArchiveFactory, Ogre::ZipArchiveFactory, and Ogre::APKFileSystemArchiveFactory.
|
pure virtual |
Returns the factory type.
Implemented in Ogre::BillboardParticleRendererFactory, Ogre::EmbeddedZipArchiveFactory, Ogre::FileSystemArchiveFactory, Ogre::ZipArchiveFactory, Ogre::APKFileSystemArchiveFactory, and Ogre::APKZipArchiveFactory.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Wed Apr 22 2015 18:15:44