diff options
Diffstat (limited to 'src')
131 files changed, 8451 insertions, 8903 deletions
diff --git a/src/CVS/Entries b/src/CVS/Entries index f1ff71c..cda8aa6 100644 --- a/src/CVS/Entries +++ b/src/CVS/Entries @@ -1,21 +1,21 @@ /Makefile.in/1.22/Tue Sep 7 17:14:39 2004// /configure/1.34/Thu Feb 17 00:25:26 2005// -/glob.h/1.60/Mon Feb 21 02:02:48 2005// -/html.cpp/1.20/Mon Feb 21 01:55:49 2005// -/html.h/1.10/Mon Feb 21 01:55:49 2005// -/incl.h/1.6/Sat Feb 19 11:08:50 2005// -/logd.cpp/1.12/Mon Feb 21 01:55:49 2005// -/logd.h/1.10/Mon Feb 21 01:55:49 2005// -/main.cpp/1.34/Mon Feb 21 01:55:49 2005// -/modl.cpp/1.18/Mon Feb 21 01:55:49 2005// -/modl.h/1.10/Mon Feb 21 01:55:49 2005// -/msgs.h/1.176/Mon Feb 21 02:02:48 2005// -/name.cpp/1.8/Mon Feb 21 01:55:49 2005// -/name.h/1.6/Mon Feb 21 01:55:49 2005// -/reqp.cpp/1.36/Mon Feb 21 01:55:49 2005// -/reqp.h/1.14/Mon Feb 21 01:55:49 2005// -/stats.cpp/1.10/Mon Feb 21 01:55:49 2005// -/stats.h/1.7/Mon Feb 21 01:55:49 2005// -/wrap.cpp/1.16/Mon Feb 21 01:55:49 2005// -/wrap.h/1.23/Mon Feb 21 01:55:49 2005// +/glob.h/1.57/Wed Feb 16 23:46:56 2005// +/html.cpp/1.19/Wed Feb 16 21:28:55 2005// +/html.h/1.9/Wed Feb 16 21:28:55 2005// +/incl.h/1.5/Wed Feb 16 22:36:32 2005// +/logd.cpp/1.10/Wed Feb 16 21:28:55 2005// +/logd.h/1.8/Wed Feb 16 21:28:55 2005// +/main.cpp/1.32/Thu Feb 17 18:09:42 2005// +/modl.cpp/1.17/Wed Feb 16 22:51:13 2005// +/modl.h/1.9/Wed Feb 16 22:51:13 2005// +/msgs.h/1.170/Thu Feb 17 18:09:42 2005// +/name.cpp/1.7/Fri Jan 7 21:00:19 2005// +/name.h/1.5/Fri Jan 7 21:00:19 2005// +/reqp.cpp/1.35/Wed Feb 16 21:28:55 2005// +/reqp.h/1.13/Wed Feb 16 21:28:55 2005// +/stats.cpp/1.9/Fri Jan 7 21:00:19 2005// +/stats.h/1.6/Fri Jan 7 21:00:19 2005// +/wrap.cpp/1.15/Wed Feb 9 22:42:58 2005// +/wrap.h/1.22/Wed Feb 9 22:42:58 2005// D diff --git a/src/CVS/Entries.Log b/src/CVS/Entries.Log index 7d9d881..fd574a4 100644 --- a/src/CVS/Entries.Log +++ b/src/CVS/Entries.Log @@ -5,7 +5,6 @@ A D/contrib//// A D/data//// A D/irc//// A D/maps//// -A D/memb//// A D/mods//// A D/ncur//// A D/sock//// diff --git a/src/chat/CVS/Entries b/src/chat/CVS/Entries index 7eb1a75..17e5803 100644 --- a/src/chat/CVS/Entries +++ b/src/chat/CVS/Entries @@ -1,17 +1,17 @@ -/base.h/1.8/Mon Feb 21 01:55:49 2005// -/base.tmpl/1.6/Mon Feb 21 01:55:49 2005// -/chat.cpp/1.18/Mon Feb 21 01:55:49 2005// -/chat.h/1.11/Mon Feb 21 01:55:49 2005// -/gcol.cpp/1.7/Mon Feb 21 01:55:49 2005// -/gcol.h/1.5/Mon Feb 21 01:55:49 2005// -/perm.cpp/1.10/Mon Feb 21 01:55:49 2005// -/perm.h/1.8/Mon Feb 21 01:55:49 2005// -/room.cpp/1.10/Mon Feb 21 01:55:49 2005// -/room.h/1.7/Mon Feb 21 01:55:49 2005// -/sess.cpp/1.6/Mon Feb 21 01:55:49 2005// -/sess.h/1.6/Mon Feb 21 01:55:49 2005// -/sman.cpp/1.11/Mon Feb 21 01:55:49 2005// -/sman.h/1.6/Mon Feb 21 01:55:49 2005// -/user.cpp/1.16/Mon Feb 21 01:55:49 2005// -/user.h/1.11/Mon Feb 21 01:55:49 2005// +/base.h/1.6/Wed Feb 16 22:36:32 2005// +/base.tmpl/1.5/Wed Feb 16 22:36:32 2005// +/chat.cpp/1.17/Wed Feb 16 23:50:35 2005// +/chat.h/1.10/Wed Feb 16 22:36:32 2005// +/gcol.cpp/1.6/Wed Feb 16 23:16:58 2005// +/gcol.h/1.4/Wed Feb 16 22:51:13 2005// +/perm.cpp/1.9/Wed Feb 16 23:16:58 2005// +/perm.h/1.7/Wed Feb 16 23:16:58 2005// +/room.cpp/1.9/Sun Feb 6 16:38:36 2005// +/room.h/1.6/Wed Feb 16 22:36:32 2005// +/sess.cpp/1.5/Tue Jan 4 18:31:35 2005// +/sess.h/1.5/Tue Jan 4 18:31:35 2005// +/sman.cpp/1.10/Wed Feb 16 22:51:13 2005// +/sman.h/1.5/Wed Feb 16 22:51:13 2005// +/user.cpp/1.14/Wed Feb 16 22:51:13 2005// +/user.h/1.8/Wed Feb 16 23:59:16 2005// D diff --git a/src/chat/base.h b/src/chat/base.h index 9da4304..0006848 100755 --- a/src/chat/base.h +++ b/src/chat/base.h @@ -1,89 +1,89 @@ +// template class data declaration; #include "../incl.h" #ifndef BASE_H #define BASE_H -#include <map> #include "../maps/nhashmap.h" template<class type> class base : public nhashmap<type*> { public: - base(); - ~base(); - - static string to_lower( string s ) - { - string s_tmp(""); - for(int i=0;i < s.size() ;i++) - s_tmp=s_tmp+(char)tolower(s.at(i)); - return s_tmp; - } - - virtual type* get_elem( string s_name, bool &b_found ); // get a element. - virtual void add_elem( type* p_type ); // add a element. - - // chat::msg_post sends to all users of the system a message. - // room::msg_post sends to all users of the room a message. - // user::msg_post sends to the user a message. - virtual void msg_post( string *s_msg ) - { - nhashmap<type*>::run_func( &base<type>::msg_post_ , (void*)s_msg ); - } - - static void msg_post_( type* type_obj, void* v_arg ) - { - type_obj -> msg_post( (string*) v_arg ); - } - - virtual void check_timeout( int* i_timeout_settings ) - { - nhashmap<type*>::run_func( &base<type>::check_timeout_ , (void*)i_timeout_settings ); - } - - static void check_timeout_( type* type_obj, void* v_arg ) - { - type_obj -> check_timeout( (int*) v_arg ); - } |
