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

base.h

Go to the documentation of this file.
00001 /*       +------------------------------------+
00002  *       | Inspire Internet Relay Chat Daemon |
00003  *       +------------------------------------+
00004  *
00005  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
00006  *                       E-mail:
00007  *                <brain@chatspike.net>
00008  *                <Craig@chatspike.net>
00009  *     
00010  * Written by Craig Edwards, Craig McLure, and others.
00011  * This program is free but copyrighted software; see
00012  *            the file COPYING for details.
00013  *
00014  * ---------------------------------------------------
00015  */
00016 
00017 #ifndef __BASE_H__ 
00018 #define __BASE_H__ 
00019 
00020 #include "inspircd_config.h" 
00021 #include <time.h>
00022 #include <map>
00023 #include <string>
00024 
00025 typedef void* VoidPointer;
00026  
00029 class classbase
00030 {
00031  public:
00034         time_t age;
00035 
00039         classbase() { age = time(NULL); }
00040         ~classbase() { }
00041 };
00042 
00050 class Extensible : public classbase
00051 {
00054         std::map<std::string,char*> Extension_Items;
00055         
00056 public:
00057 
00064         bool Extend(std::string key, char* p);
00065 
00071         bool Shrink(std::string key);
00072         
00077         char* GetExt(std::string key);
00078 };
00079 
00080 #endif
00081 

Generated on Thu May 12 22:58:57 2005 for InspIRCd by doxygen 1.3.3