1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>InspIRCd: ModuleFactory class Reference</title>
4 <link href="inspircd.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3.3 -->
7 <div class="qindex"><a class="qindex" href="main.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="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
8 <h1>ModuleFactory Class Reference</h1>Instantiates classes inherited from <a class="el" href="classModule.html">Module</a> This class creates a class inherited from type <a class="el" href="classModule.html">Module</a>, using new.
9 <a href="#_details">More...</a>
11 <code>#include <<a class="el" href="modules_8h-source.html">modules.h</a>></code>
13 Inheritance diagram for ModuleFactory:<p><center><img src="classModuleFactory__inherit__graph.gif" border="0" usemap="#ModuleFactory__inherit__map" alt="Inheritance graph"></center>
14 <map name="ModuleFactory__inherit__map">
15 <area href="classclassbase.html" shape="rect" coords="22,7,102,34" alt="">
17 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for ModuleFactory:<p><center><img src="classModuleFactory__coll__graph.gif" border="0" usemap="#ModuleFactory__coll__map" alt="Collaboration graph"></center>
18 <map name="ModuleFactory__coll__map">
19 <area href="classclassbase.html" shape="rect" coords="22,98,102,125" alt="">
21 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classModuleFactory-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
23 <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
24 <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classModuleFactory.html#a0">ModuleFactory</a> ()</td></tr>
26 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classModuleFactory.html#a1">~ModuleFactory</a> ()</td></tr>
28 <tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classModule.html">Module</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classModuleFactory.html#a2">CreateModule</a> ()=0</td></tr>
30 <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new module. </em> <a href="#a2"></a><em><br><br></td></tr>
32 <hr><a name="_details"></a><h2>Detailed Description</h2>
33 Instantiates classes inherited from <a class="el" href="classModule.html">Module</a> This class creates a class inherited from type <a class="el" href="classModule.html">Module</a>, using new.
35 This is to allow for modules to create many different variants of <a class="el" href="classModule.html">Module</a>, dependent on architecture, configuration, etc. In most cases, the simple class shown in the example module m_foobar.so will suffice for most modules.
39 Definition at line <a class="el" href="modules_8h-source.html#l01291">1291</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
40 <a name="a0" doxytag="ModuleFactory::ModuleFactory"></a><p>
41 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
44 <table cellpadding="0" cellspacing="0" border="0">
46 <td class="md" nowrap valign="top"> ModuleFactory::ModuleFactory </td>
47 <td class="md" valign="top">( </td>
48 <td class="mdname1" valign="top" nowrap> </td>
49 <td class="md" valign="top"> ) </td>
50 <td class="md" nowrap><code> [inline]</code></td>
57 <table cellspacing=5 cellpadding=0 border=0>
67 Definition at line <a class="el" href="modules_8h-source.html#l01294">1294</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
69 <div class="fragment"><pre>01294 { }
73 <a name="a1" doxytag="ModuleFactory::~ModuleFactory"></a><p>
74 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
77 <table cellpadding="0" cellspacing="0" border="0">
79 <td class="md" nowrap valign="top"> virtual ModuleFactory::~<a class="el" href="classModuleFactory.html">ModuleFactory</a> </td>
80 <td class="md" valign="top">( </td>
81 <td class="mdname1" valign="top" nowrap> </td>
82 <td class="md" valign="top"> ) </td>
83 <td class="md" nowrap><code> [inline, virtual]</code></td>
90 <table cellspacing=5 cellpadding=0 border=0>
100 Definition at line <a class="el" href="modules_8h-source.html#l01295">1295</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
102 <div class="fragment"><pre>01295 { }
106 <hr><h2>Member Function Documentation</h2>
107 <a name="a2" doxytag="ModuleFactory::CreateModule"></a><p>
108 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
111 <table cellpadding="0" cellspacing="0" border="0">
113 <td class="md" nowrap valign="top"> virtual <a class="el" href="classModule.html">Module</a>* ModuleFactory::CreateModule </td>
114 <td class="md" valign="top">( </td>
115 <td class="mdname1" valign="top" nowrap> </td>
116 <td class="md" valign="top"> ) </td>
117 <td class="md" nowrap><code> [pure virtual]</code></td>
124 <table cellspacing=5 cellpadding=0 border=0>
132 Creates a new module.
134 Your inherited class of ModuleFactory must return a pointer to your <a class="el" href="classModule.html">Module</a> class using this method. </td>
137 <hr>The documentation for this class was generated from the following file:<ul>
138 <li><a class="el" href="modules_8h-source.html">modules.h</a></ul>
139 <hr size="1"><address style="align: right;"><small>Generated on Fri May 13 01:59:55 2005 for InspIRCd by
140 <a href="http://www.doxygen.org/index.html">
141 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
142 </a>1.3.3 </small></address>