|
|||
|
|||
|
#include <xline.h>
Inheritance diagram for XLineFactory:


Public Member Functions | |
| XLineFactory (InspIRCd *Instance, const std::string &t) | |
| Create an XLine factory. | |
| virtual const std::string & | GetType () |
| Return the type of XLine this factory generates. | |
| virtual XLine * | Generate (time_t set_time, long duration, const char *source, const char *reason, const char *xline_specific_mask)=0 |
| Generate a specialized XLine*. | |
| virtual bool | AutoApplyToUserList (XLine *x) |
| virtual | ~XLineFactory () |
| Destructor. | |
Protected Attributes | |
| InspIRCd * | ServerInstance |
| std::string | type |
This is used for example in the spanningtree module which will call an XLineFactory to create a new XLine when it is inbound on a server link, so that it does not have to know the specifics of the internals of an XLine class and/or how to call its constructor.
Definition at line 388 of file xline.h.
|
||||||||||||
|
Create an XLine factory.
|
|
|
Destructor.
|
|
|
Reimplemented in CBanFactory. Definition at line 418 of file xline.h. Referenced by XLineManager::AddLine(). |
|
||||||||||||||||||||||||
|
Generate a specialized XLine*.
Implemented in CBanFactory, ShunFactory, SVSHoldFactory, RLineFactory, GLineFactory, ELineFactory, KLineFactory, QLineFactory, and ZLineFactory. Referenced by TreeSocket::AddLine(), and ModuleXLineDB::ReadDatabase(). |
|
|
Return the type of XLine this factory generates.
Definition at line 406 of file xline.h. Referenced by XLineManager::RegisterFactory(), and XLineManager::UnregisterFactory(). |
|
|
Definition at line 392 of file xline.h. Referenced by SVSHoldFactory::Generate(), ShunFactory::Generate(), and CBanFactory::Generate(). |
|
|
|