|
OGRE
1.9.0
|
Abstract factory class. More...
#include <OgreFactoryObj.h>
Public Member Functions | |
| virtual | ~FactoryObj () |
| virtual T * | createInstance (const String &name)=0 |
| Creates a new object. | |
| virtual void | destroyInstance (T *ptr)=0 |
| Destroys an object which was created by this factory. | |
| virtual const String & | getType () const =0 |
| Returns the factory type. | |
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::ArchiveFactory, and Ogre::BillboardParticleRendererFactory.
|
pure virtual |
Destroys an object which was created by this factory.
| ptr | Pointer to the object to destroy |
Implemented in Ogre::APKFileSystemArchiveFactory, Ogre::BillboardParticleRendererFactory, Ogre::FileSystemArchiveFactory, and Ogre::ZipArchiveFactory.
|
pure virtual |
Returns the factory type.
Implemented in Ogre::APKFileSystemArchiveFactory, Ogre::APKZipArchiveFactory, Ogre::BillboardParticleRendererFactory, Ogre::EmbeddedZipArchiveFactory, Ogre::FileSystemArchiveFactory, and Ogre::ZipArchiveFactory.
1.13.2