InspIRCd
3.0
|
#include <xline.h>
Public Member Functions | |
XLineFactory (const std::string &t) | |
virtual const std::string & | GetType () |
virtual XLine * | Generate (time_t set_time, unsigned long duration, const std::string &source, const std::string &reason, const std::string &xline_specific_mask)=0 |
virtual bool | AutoApplyToUserList (XLine *x) |
virtual | ~XLineFactory () |
Protected Attributes | |
std::string | type |
XLineFactory is used to generate an XLine pointer, given just the pattern, timing information and type of line to create. 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.
|
inline |
|
inlinevirtual |
Destructor
|
pure virtual |
Generate a specialized XLine*.
set_time | Time this line was created |
duration | Duration of the line |
source | The sender of the line, nickname or server |
reason | The reason for the line |
xline_specific_mask | The mask string for the line, specific to the XLine type being created. |
Implemented in ZLineFactory, QLineFactory, KLineFactory, ELineFactory, and GLineFactory.
|
inlinevirtual |