Public Member Functions | Private Member Functions | Private Attributes

CommandOSStats Class Reference

Inherits Command.

Collaboration diagram for CommandOSStats:
Collaboration graph
[legend]

Public Member Functions

 CommandOSStats (Module *creator)
void Execute (CommandSource &source, const std::vector< Anope::string > &params) anope_override
bool OnHelp (CommandSource &source, const Anope::string &subcommand) anope_override

Private Member Functions

void DoStatsAkill (CommandSource &source)
void DoStatsReset (CommandSource &source)
void DoStatsUptime (CommandSource &source)
void DoStatsUplink (CommandSource &source)
template<typename T >
void GetHashStats (const T &map, size_t &entries, size_t &buckets, size_t &max_chain)
void DoStatsHash (CommandSource &source)

Private Attributes

ServiceReference< XLineManagerakills
ServiceReference< XLineManagersnlines
ServiceReference< XLineManagersqlines

Detailed Description

Definition at line 54 of file os_stats.cpp.


Constructor & Destructor Documentation

CommandOSStats::CommandOSStats ( Module creator  )  [inline]

Definition at line 196 of file os_stats.cpp.

References _, Command::SetDesc(), and Command::SetSyntax().


Member Function Documentation

void CommandOSStats::DoStatsAkill ( CommandSource source  )  [inline, private]
void CommandOSStats::DoStatsHash ( CommandSource source  )  [inline, private]
void CommandOSStats::DoStatsReset ( CommandSource source  )  [inline, private]

Definition at line 124 of file os_stats.cpp.

References _, MaxUserCount, CommandSource::Reply(), and UserListByNick.

Referenced by Execute().

void CommandOSStats::DoStatsUplink ( CommandSource source  )  [inline, private]
void CommandOSStats::DoStatsUptime ( CommandSource source  )  [inline, private]
void CommandOSStats::Execute ( CommandSource source,
const std::vector< Anope::string > &  params 
) [inline, virtual]

Execute this command.

Parameters:
source The source
params Command parameters

Implements Command.

Definition at line 203 of file os_stats.cpp.

References _, Anope::string::c_str(), DoStatsAkill(), DoStatsHash(), DoStatsReset(), DoStatsUplink(), DoStatsUptime(), Anope::string::empty(), and Anope::string::equals_ci().

template<typename T >
void CommandOSStats::GetHashStats ( const T &  map,
size_t &  entries,
size_t &  buckets,
size_t &  max_chain 
) [inline, private]

Definition at line 155 of file os_stats.cpp.

Referenced by DoStatsHash().

bool CommandOSStats::OnHelp ( CommandSource source,
const Anope::string subcommand 
) [inline, virtual]

Requested when the user is requesting help on this command. Help on this command should be sent to the user.

Parameters:
source The source
subcommand The subcommand the user is requesting help on, or an empty string. (e.g. /ns help set foo bar lol gives a subcommand of "FOO BAR LOL")
Returns:
true if help was provided to the user, false otherwise.

Reimplemented from Command.

Definition at line 226 of file os_stats.cpp.

References _, and Command::SendSyntax().


Field Documentation

Definition at line 56 of file os_stats.cpp.

Referenced by DoStatsAkill().

Definition at line 56 of file os_stats.cpp.

Referenced by DoStatsAkill().

Definition at line 56 of file os_stats.cpp.

Referenced by DoStatsAkill().


The documentation for this class was generated from the following file: