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 Defines the base classes used by InspIRCd
00003 */
00004 
00005 #ifndef __BASE_H__ 
00006 #define __BASE_H__ 
00007 
00008 #include "inspircd_config.h" 
00009 #include <time.h>
00010 #include <map>
00011 #include <string>
00012 
00013 typedef void* VoidPointer;
00014  
00017 class classbase
00018 {
00019  public:
00022         time_t age;
00023 
00027         classbase() { age = time(NULL); }
00028         ~classbase() { }
00029 };
00030 
00038 class Extensible : public classbase
00039 {
00042         std::map<std::string,char*> Extension_Items;
00043         
00044 public:
00045 
00052         bool Extend(std::string key, char* p);
00053 
00059         bool Shrink(std::string key);
00060         
00065         char* GetExt(std::string key);
00066 };
00067 
00068 #endif
00069 

Generated on Sat May 1 17:50:06 2004 for InspIRCd by doxygen1.3-rc3