OGRE  1.12.12
Object-Oriented Graphics Rendering Engine
Ogre::FactoryObj< T > Class Template Referenceabstract

Abstract factory class. More...

#include <OgrePrerequisites.h>

+ Inheritance diagram for Ogre::FactoryObj< T >:

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 StringgetType () const =0
 Returns the factory type. More...

Detailed Description

template<typename T>
class Ogre::FactoryObj< T >

Abstract factory class.

Does nothing by itself, but derived classes can add functionality.

Constructor & Destructor Documentation

◆ ~FactoryObj()

template<typename T >
virtual Ogre::FactoryObj< T >::~FactoryObj ( )

Member Function Documentation

◆ getType()

template<typename T >
virtual const String& Ogre::FactoryObj< T >::getType ( ) const
pure virtual

◆ createInstance()

template<typename T >
virtual T* Ogre::FactoryObj< T >::createInstance ( const String name)
pure virtual

Creates a new object.

nameName of the object to create
An object created by the factory. The type of the object depends on the factory.

Implemented in Ogre::BillboardParticleRendererFactory, and Ogre::ArchiveFactory.

◆ destroyInstance()

template<typename T >
virtual void Ogre::FactoryObj< T >::destroyInstance ( T *  ptr)
pure virtual

Destroys an object which was created by this factory.

ptrPointer to the object to destroy

Implemented in Ogre::EmbeddedZipArchiveFactory, Ogre::APKFileSystemArchiveFactory, Ogre::ZipArchiveFactory, and Ogre::FileSystemArchiveFactory.

The documentation for this class was generated from the following file: