git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
95 lines
6.5 KiB
HTML
95 lines
6.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||
<title>EO: eoFactory< EOClass > Class Template Reference</title>
|
||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||
</head><body>
|
||
<!-- Generated by Doxygen 1.3.9.1 -->
|
||
<div class="qindex"> <form class="search" action="search.php" method="get">
|
||
<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</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">Class 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">Class Members</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
|
||
<h1>eoFactory< EOClass > Class Template Reference</h1><a class="el" href="class_e_o.html">EO</a> Factory.
|
||
<a href="#_details">More...</a>
|
||
<p>
|
||
<code>#include <<a class="el" href="eo_factory_8h-source.html">eoFactory.h</a>></code>
|
||
<p>
|
||
<p>Inheritance diagram for eoFactory< EOClass >:
|
||
<p><center><img src="classeo_factory.png" usemap="#eoFactory< EOClass >_map" border="0" alt=""></center>
|
||
<map name="eoFactory< EOClass >_map">
|
||
<area href="classeo_object.html" alt="eoObject" shape="rect" coords="0,0,143,24">
|
||
</map>
|
||
<a href="classeo_factory-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
||
<tr><td></td></tr>
|
||
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual EOClass * </td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_factory.html#a0">make</a> (std::istream &_is)=0</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Another factory methods: creates an object from an std::istream, reading from it whatever is needed to create the object. <a href="#a0"></a><br></td></tr>
|
||
<tr><td colspan="2"><div class="groupHeader">ctors and dtors</div></td></tr>
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="z11_0" doxytag="eoFactory::eoFactory"></a>
|
||
</td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_factory.html#z11_0">eoFactory</a> ()</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">constructor <br></td></tr>
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="z11_1" doxytag="eoFactory::~eoFactory"></a>
|
||
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_factory.html#z11_1">~eoFactory</a> ()</td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">destructor <br></td></tr>
|
||
<tr><td colspan="2"><div class="groupHeader">eoObject methods</div></td></tr>
|
||
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="z13_0" doxytag="eoFactory::className"></a>
|
||
virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classeo_factory.html#z13_0">className</a> () const </td></tr>
|
||
|
||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the class id. <br></td></tr>
|
||
</table>
|
||
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||
<h3>template<class EOClass><br>
|
||
class eoFactory< EOClass ></h3>
|
||
|
||
<a class="el" href="class_e_o.html">EO</a> Factory.
|
||
<p>
|
||
A factory is used to create other objects. In particular, it can be used so that objects of that kind can<61>t be created in any other way. It should be instantiated with anything that needs a factory, like selectors or whatever; but the instance class should be the parent class from which all the object that are going to be created descend. This class basically defines an interface, as usual. The base factory class for each hierarchy should be redefined every time a new object is added to the hierarchy, which is not too good, but in any case, some code would have to be modified
|
||
<p>
|
||
|
||
<p>
|
||
Definition at line <a class="el" href="eo_factory_8h-source.html#l00042">42</a> of file <a class="el" href="eo_factory_8h-source.html">eoFactory.h</a>.<hr><h2>Member Function Documentation</h2>
|
||
<a class="anchor" name="a0" doxytag="eoFactory::make"></a><p>
|
||
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
||
<tr>
|
||
<td class="mdRow">
|
||
<table cellpadding="0" cellspacing="0" border="0">
|
||
<tr>
|
||
<td class="md" colspan="4">
|
||
template<class EOClass> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="md" nowrap valign="top">virtual EOClass* <a class="el" href="classeo_factory.html">eoFactory</a>< EOClass >::make </td>
|
||
<td class="md" valign="top">( </td>
|
||
<td class="md" nowrap valign="top">std::istream & </td>
|
||
<td class="mdname1" valign="top" nowrap> <em>_is</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>
|
||
Another factory methods: creates an object from an std::istream, reading from it whatever is needed to create the object.
|
||
<p>
|
||
Usually, the format for the std::istream will be\ objectType parameter1 parameter2 ... parametern\
|
||
<p>
|
||
Implemented in <a class="el" href="classeo_op_sel_mason.html#a0">eoOpSelMason< eoClass ></a>, <a class="el" href="classeo_select_factory.html#a0">eoSelectFactory< EOT ></a>, and <a class="el" href="classeo_bit_op_factory.html#a0">eoBitOpFactory< EOT ></a>.
|
||
<p>
|
||
Referenced by <a class="el" href="eo_bit_op_factory_8h-source.html#l00063">eoBitOpFactory< EOT >::make()</a>. </td>
|
||
</tr>
|
||
</table>
|
||
<hr>The documentation for this class was generated from the following file:<ul>
|
||
<li><a class="el" href="eo_factory_8h-source.html">eoFactory.h</a></ul>
|
||
<hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:48 2006 for EO by
|
||
<a href="http://www.doxygen.org/index.html">
|
||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
|
||
</body>
|
||
</html>
|