Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 2165

libogre1-devel-0.13.0-1mdk.i586.rpm

<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> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>Ogre::FactoryObj&lt; T &gt;  Class Template Reference</h1>Abstract factory class. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreFactoryObj_8h-source.html">OgreFactoryObj.h</a>&gt;</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&nbsp;</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>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1FactoryObj.html#Ogre_1_1FactoryObja1">getType</a> () const=0</td></tr>
<tr><td>&nbsp;</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 *&nbsp;</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> &amp;name)=0</td></tr>
<tr><td>&nbsp;</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&lt;typename T&gt;<br>
 class Ogre::FactoryObj&lt; T &gt;</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 &amp; 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&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> virtual Ogre::FactoryObj&lt; T &gt;::~FactoryObj </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> virtual T* Ogre::FactoryObj&lt; T &gt;::createObj </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>name</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [pure virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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>&nbsp;</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&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> virtual <a class="el" href="classOgre_1_1String.html">String</a> Ogre::FactoryObj&lt; T &gt;::getType </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</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>
      &nbsp;
    </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 &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:17:22 2004
</p>
</body>
</html>