Anope IRC Services  Version 2.0
cs_log.h
Go to the documentation of this file.
1 /* ChanServ core functions
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  */
11 
12 struct LogSetting
13 {
15  /* Our service name of the command */
17  /* The name of the client the command is on */
19  /* Name of the command to the user, can have spaces */
23  time_t created;
24 
25  virtual ~LogSetting() { }
26  protected:
27  LogSetting() { }
28 };
29 
30 struct LogSettings : Serialize::Checker<std::vector<LogSetting *> >
31 {
32  typedef std::vector<LogSetting *>::iterator iterator;
33 
34  protected:
35  LogSettings() : Serialize::Checker<std::vector<LogSetting *> >("LogSetting")
36  {
37  }
38 
39  public:
40  virtual ~LogSettings() { }
41  virtual LogSetting *Create() = 0;
42 };
43 
Anope::string method
Definition: cs_log.h:21
LogSettings()
Definition: cs_log.h:35
Anope::string extra
Definition: cs_log.h:21
Anope::string command_name
Definition: cs_log.h:20
Anope::string service_name
Definition: cs_log.h:16
LogSetting()
Definition: cs_log.h:27
Checker(const Anope::string &n)
Definition: serialize.h:202
time_t created
Definition: cs_log.h:23
Anope::string creator
Definition: cs_log.h:22
virtual LogSetting * Create()=0
virtual ~LogSettings()
Definition: cs_log.h:40
Anope::string chan
Definition: cs_log.h:14
std::vector< LogSetting * >::iterator iterator
Definition: cs_log.h:32
Anope::string command_service
Definition: cs_log.h:18
virtual ~LogSetting()
Definition: cs_log.h:25