#include <OgreFactoryObj.h>
Public Member Functions | |
virtual | ~FactoryObj () |
virtual const String & | getType () const =0 |
Returns the factory type. | |
virtual T * | createInstance (const String &name)=0 |
Creates a new object. | |
virtual void | destroyInstance (T *)=0 |
Destroys an object which was created by this factory. |
Does nothing by itself, but derived classes can add functionality.
Definition at line 39 of file OgreFactoryObj.h.
virtual Ogre::FactoryObj< T >::~FactoryObj | ( | ) | [virtual] |
Definition at line 42 of file OgreFactoryObj.h.
virtual const String& Ogre::FactoryObj< T >::getType | ( | ) | const [pure virtual] |
Returns the factory type.
Implemented in Ogre::BillboardParticleRendererFactory, Ogre::FileSystemArchiveFactory, and Ogre::ZipArchiveFactory.
virtual T* Ogre::FactoryObj< T >::createInstance | ( | const String & | name | ) | [pure virtual] |
Creates a new object.
name | Name of the object to create |
Implemented in Ogre::BillboardParticleRendererFactory, Ogre::FileSystemArchiveFactory, and Ogre::ZipArchiveFactory.
virtual void Ogre::FactoryObj< T >::destroyInstance | ( | T * | ) | [pure virtual] |
Destroys an object which was created by this factory.
ptr | Pointer to the object to destroy |
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:03:20 2009