<html> <head> <title> TemplateOgre::FactoryObj class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <!-- Generated by Doxygen 1.2.16 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>Ogre::FactoryObj< T > Class Template Reference</h1>Abstract factory class. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="OgreFactoryObj_8h-source.html">OgreFactoryObj.h</a>></code> <p> <a href="classOgre_1_1FactoryObj-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classOgre_1_1FactoryObj.html#Ogre_1_1FactoryObja0">~FactoryObj</a> ()</td></tr> <tr><td nowrap align=right valign=top>virtual <a class="el" href="classOgre_1_1String.html">String</a> </td><td valign=bottom><a class="el" href="classOgre_1_1FactoryObj.html#Ogre_1_1FactoryObja1">getType</a> () const=0</td></tr> <tr><td> </td><td><font size=-1><em>Returns the factory type.</em> <a href="#Ogre_1_1FactoryObja1"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual T * </td><td valign=bottom><a class="el" href="classOgre_1_1FactoryObj.html#Ogre_1_1FactoryObja2">createObj</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &name)=0</td></tr> <tr><td> </td><td><font size=-1><em>'Produces' a new object.</em> <a href="#Ogre_1_1FactoryObja2"></a><em></em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <h3>template<typename T><br> class Ogre::FactoryObj< T ></h3> Abstract factory class. <p> Does nothing by itself, but derived classes can add functionality. <p> <p> Definition at line <a class="el" href="OgreFactoryObj_8h-source.html#l00035">35</a> of file <a class="el" href="OgreFactoryObj_8h-source.html">OgreFactoryObj.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="Ogre_1_1FactoryObja0" doxytag="Ogre::FactoryObj::~FactoryObj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" colspan="4"> template<typename T> </td> </tr> <tr> <td class="md" nowrap valign="top"> virtual Ogre::FactoryObj< T >::~FactoryObj </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreFactoryObj_8h-source.html#l00038">38</a> of file <a class="el" href="OgreFactoryObj_8h-source.html">OgreFactoryObj.h</a>. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="Ogre_1_1FactoryObja2" doxytag="Ogre::FactoryObj::createObj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" colspan="4"> template<typename T> </td> </tr> <tr> <td class="md" nowrap valign="top"> virtual T* Ogre::FactoryObj< T >::createObj </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> & </td> <td class="mdname1" valign="top" nowrap> <em>name</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [pure virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> 'Produces' a new object. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>name</em> </td><td> Name of the object to create </td></tr> </table> </dl><dl compact><dt><b> Returns: </b><dd> An object created by the factory. The type of the object depends on the factory. </dl> <p> Implemented in <a class="el" href="classOgre_1_1ArchiveFactory.html#Ogre_1_1ArchiveFactorya0">Ogre::ArchiveFactory</a>, and <a class="el" href="classOgre_1_1ZipArchiveFactory.html#Ogre_1_1ZipArchiveFactorya2">Ogre::ZipArchiveFactory</a>. </td> </tr> </table> <a name="Ogre_1_1FactoryObja1" doxytag="Ogre::FactoryObj::getType"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" colspan="4"> template<typename T> </td> </tr> <tr> <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1String.html">String</a> Ogre::FactoryObj< T >::getType </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [pure virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns the factory type. <p> <dl compact><dt><b> Returns: </b><dd> The factory type. </dl> <p> Implemented in <a class="el" href="classOgre_1_1ArchiveFactory.html#Ogre_1_1ArchiveFactorya1">Ogre::ArchiveFactory</a>, and <a class="el" href="classOgre_1_1ZipArchiveFactory.html#Ogre_1_1ZipArchiveFactorya3">Ogre::ZipArchiveFactory</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="OgreFactoryObj_8h-source.html">OgreFactoryObj.h</a></ul> <p> Copyright © 2002-2003 by The OGRE Team<br /> Last modified Wed Jan 21 00:17:22 2004 </p> </body> </html>