Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ModuleFactory Class Reference

Instantiates classes inherited from Module This class creates a class inherited from type Module, using new. More...

#include <modules.h>

Inheritance diagram for ModuleFactory:

Inheritance graph
[legend]
Collaboration diagram for ModuleFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleFactory ()
virtual ~ModuleFactory ()
virtual ModuleCreateModule (Server *Me)=0
 Creates a new module.

Detailed Description

Instantiates classes inherited from Module This class creates a class inherited from type Module, using new.

This is to allow for modules to create many different variants of Module, dependent on architecture, configuration, etc. In most cases, the simple class shown in the example module m_foobar.so will suffice for most modules.

Definition at line 1694 of file modules.h.


Constructor & Destructor Documentation

ModuleFactory::ModuleFactory  )  [inline]
 

Definition at line 1697 of file modules.h.

01697 { }

virtual ModuleFactory::~ModuleFactory  )  [inline, virtual]
 

Definition at line 1698 of file modules.h.

01698 { }


Member Function Documentation

virtual Module* ModuleFactory::CreateModule Server Me  )  [pure virtual]
 

Creates a new module.

Your inherited class of ModuleFactory must return a pointer to your Module class using this method.


The documentation for this class was generated from the following file:
Generated on Mon Dec 19 18:02:16 2005 for InspIRCd by  doxygen 1.4.4-20050815