From a753fb1bc711e10794e939e424f3cdd703116d82 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Apr 2004 12:38:41 +0000 Subject: Added support for modules to create commands - this needs a proof-of-concept module yet, do not use unless you like to live dangerously. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@351 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/modules_8cpp.html | 343 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 330 insertions(+), 13 deletions(-) (limited to 'docs/module-doc/modules_8cpp.html') diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index aaed85b4e..88f136261 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -7,35 +7,164 @@
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

modules.cpp File Reference

#include <typeinfo>
-#include <iostream.h>
+#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

vector< Module * > modules (255)
vector< ircd_module * > factory (255)
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

int MODCOUNT = -1
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 }
+
+

- + @@ -58,13 +187,175 @@ Include dependency graph for modules.cpp:

+

vector<ircd_module*> factory std::vector<ircd_module*> factory 255   
+ +
- + + + + + + + + + + + + + + + + + +
vector<Module*> modules 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 }
+
+

+ + +
+ + + @@ -88,7 +379,33 @@ Include dependency graph for modules.cpp:

+

+

std::vector<Module*> modules 255   
+ + + +
+ + +
ExtModeList EMode +
+
+ + + + + +
+   + + +

+ +

+Definition at line 31 of file modules.cpp. +

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

+

+Definition at line 309 of file modules.cpp.
@@ -109,10 +426,10 @@ Include dependency graph for modules.cpp:

224 of file modules.cpp.
-


Generated on Sun Mar 30 19:35:10 2003 for InspIRCd by +
Generated on Fri Apr 2 13:37:31 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.3.1-10-gc9f91