Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

modules.cpp File Reference

#include <typeinfo>
#include <iostream>
#include "globals.h"
#include "modules.h"
#include "ctables.h"
#include "inspircd_io.h"

Include dependency graph for modules.cpp:

Include dependency graph

Go to the source code of this file.

Compounds

class  ExtMode

Typedefs

typedef std::vector< ExtModeExtModeList
typedef ExtModeList::iterator ExtModeListIter

Functions

bool ModeDefined (char modechar, int type)
bool ModeDefinedOn (char modechar, int type)
bool ModeDefinedOff (char modechar, int type)
bool AddExtendedMode (char modechar, int type, bool default_on, int params_on, int params_off)
std::vector< Module * > modules (255)
std::vector< ircd_module * > factory (255)

Variables

ExtModeList EMode
int MODCOUNT = -1


Typedef Documentation

typedef std::vector<ExtMode> ExtModeList
 

Definition at line 28 of file modules.cpp.

typedef ExtModeList::iterator ExtModeListIter
 

Definition at line 29 of file modules.cpp.

Referenced by ModeDefined(), ModeDefinedOff(), and ModeDefinedOn().


Function Documentation

bool AddExtendedMode char    modechar,
int    type,
bool    default_on,
int    params_on,
int    params_off
 

Definition at line 73 of file modules.cpp.

References EMode.

00074 {
00075         EMode.push_back( ExtMode (modechar,type,default_on,params_on,params_off));
00076         return true;
00077 }

std::vector<ircd_module*> factory 255   
 

bool ModeDefined char    modechar,
int    type
 

Definition at line 34 of file modules.cpp.

References EMode, and ExtModeListIter.

00035 {
00036         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
00037         {
00038                 if ((i->modechar == modechar) && (i->type == type))
00039                 {
00040                         return true;
00041                 }
00042         }
00043         return false;
00044 }

bool ModeDefinedOff char    modechar,
int    type
 

Definition at line 60 of file modules.cpp.

References EMode, and ExtModeListIter.

00061 {
00062         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
00063         {
00064                 if ((i->modechar == modechar) && (i->type == type))
00065                 {
00066                         return i->params_when_off;
00067                 }
00068         }
00069         return 0;
00070 }

bool ModeDefinedOn char    modechar,
int    type
 

Definition at line 47 of file modules.cpp.

References EMode, and ExtModeListIter.

00048 {
00049         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
00050         {
00051                 if ((i->modechar == modechar) && (i->type == type))
00052                 {
00053                         return i->params_when_on;
00054                 }
00055         }
00056         return 0;
00057 }

std::vector<Module*> modules 255   
 


Variable Documentation

ExtModeList EMode
 

Definition at line 31 of file modules.cpp.

Referenced by AddExtendedMode(), ModeDefined(), ModeDefinedOff(), and ModeDefinedOn().

int MODCOUNT = -1
 

Definition at line 309 of file modules.cpp.


Generated on Fri Apr 2 13:37:31 2004 for InspIRCd by doxygen1.3-rc3