summaryrefslogtreecommitdiff
path: root/docs/man/man3/ModuleFactory.3
blob: 07c23ad698cb31503672bb69bfb39250d0493687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.TH "ModuleFactory" 3 "9 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
ModuleFactory \- Instantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <modules.h>\fP
.PP
Inherits \fBclassbase\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBModuleFactory\fP ()"
.br
.ti -1c
.RI "virtual \fB~ModuleFactory\fP ()"
.br
.ti -1c
.RI "virtual \fBModule\fP * \fBCreateModule\fP (\fBServer\fP *Me)=0"
.br
.RI "\fICreates a new module. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Instantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new. 

This is to allow for modules to create many different variants of \fBModule\fP, dependent on architecture, configuration, etc. In most cases, the simple class shown in the example module m_foobar.so will suffice for most modules.
.PP
Definition at line 1654 of file modules.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "ModuleFactory::ModuleFactory ()\fC [inline]\fP"
.PP
Definition at line 1657 of file modules.h.
.PP
.nf
1657 { }
.fi
.PP
.SS "virtual ModuleFactory::~ModuleFactory ()\fC [inline, virtual]\fP"
.PP
Definition at line 1658 of file modules.h.
.PP
.nf
1658 { }
.fi
.PP
.SH "Member Function Documentation"
.PP 
.SS "virtual \fBModule\fP* ModuleFactory::CreateModule (\fBServer\fP * Me)\fC [pure virtual]\fP"
.PP
Creates a new module. 
.PP
Your inherited class of ModuleFactory must return a pointer to your \fBModule\fP class using this method.

.SH "Author"
.PP 
Generated automatically by Doxygen for InspIRCd from the source code.