|XLineFactory (const std::string &t)|
|virtual const std::string &||GetType ()|
|virtual XLine *||Generate (time_t set_time, long duration, std::string source, std::string reason, std::string xline_specific_mask)=0|
|virtual bool||AutoApplyToUserList (XLine *x)|
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.
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.|