Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

command_t Class Reference

A structure that defines a command. More...

#include <ctables.h>

Inheritance diagram for command_t:

Inheritance graph
[legend]
Collaboration diagram for command_t:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 command_t (std::string cmd, char flags, int minpara)
virtual void Handle (char **parameters, int pcnt, userrec *user)=0
virtual ~command_t ()

Public Attributes

std::string command
 Command name.
char flags_needed
 User flags needed to execute the command or 0.
int min_params
 Minimum number of parameters command takes.
long use_count
 used by /stats m
long total_bytes
 used by /stats m
std::string source
 used for resource tracking between modules

Detailed Description

A structure that defines a command.

Definition at line 29 of file ctables.h.


Constructor & Destructor Documentation

command_t::command_t std::string  cmd,
char  flags,
int  minpara
[inline]
 

Definition at line 51 of file ctables.h.

References source, total_bytes, and use_count.

00051                                                           : command(cmd), flags_needed(flags), min_params(minpara)
00052         {
00053                 use_count = total_bytes = 0;
00054                 source = "<core>";
00055         }

virtual command_t::~command_t  )  [inline, virtual]
 

Definition at line 59 of file ctables.h.

00059 {}


Member Function Documentation

virtual void command_t::Handle char **  parameters,
int  pcnt,
userrec user
[pure virtual]
 

Implemented in cmd_mode.


Member Data Documentation

std::string command_t::command
 

Command name.

Definition at line 34 of file ctables.h.

char command_t::flags_needed
 

User flags needed to execute the command or 0.

Definition at line 37 of file ctables.h.

int command_t::min_params
 

Minimum number of parameters command takes.

Definition at line 40 of file ctables.h.

std::string command_t::source
 

used for resource tracking between modules

Definition at line 49 of file ctables.h.

Referenced by command_t().

long command_t::total_bytes
 

used by /stats m

Definition at line 46 of file ctables.h.

Referenced by command_t().

long command_t::use_count
 

used by /stats m

Definition at line 43 of file ctables.h.

Referenced by command_t().


The documentation for this class was generated from the following file:
Generated on Mon Dec 19 18:02:15 2005 for InspIRCd by  doxygen 1.4.4-20050815