Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::FactoryObj Class Template Reference

Abstract factory class. More...

#include <OgreFactoryObj.h>

List of all members.

Public Methods

virtual ~FactoryObj ()
virtual String getType ()=0
 Returns the factory type. More...

virtual T * createObj (const String &name)=0
 'Produces' a new object. 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

template<typename T>
virtual Ogre::FactoryObj< T >::~FactoryObj   [inline, virtual]
 


Member Function Documentation

template<typename T>
virtual T* Ogre::FactoryObj< T >::createObj const String   name [pure virtual]
 

'Produces' a new object.

Parameters:
name  Name of the object to create
Returns:
An object created by the factory. The type of the object depends on the factory.

Implemented in Ogre::ArchiveFactory.

template<typename T>
virtual String Ogre::FactoryObj< T >::getType   [pure virtual]
 

Returns the factory type.

Returns:
The factory type.

Implemented in Ogre::ArchiveFactory.

Copyright © 2002 by The OGRE Team