-/*
-Defines the base classes used by InspIRCd
-*/
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
#ifndef __BASE_H__
#define __BASE_H__
{
/** Private data store
*/
- std::map<std::string,VoidPointer> Extension_Items;
+ std::map<std::string,char*> Extension_Items;
public:
* twice, Extensible::Extend will return false in this case.
* On successful extension, Extend returns true.
*/
- bool Extend(std::string key, VoidPointer p);
+ bool Extend(std::string key, char* p);
/** Shrink an Extensible class.
* You must provide a key name. The given key name will be removed from the classes data. If
* You must provide a key name, which is case sensitive. If you provide a non-existent key name,
* the function returns NULL, otherwise a pointer to the item referenced by the key is returned.
*/
- VoidPointer GetExt(std::string key);
+ char* GetExt(std::string key);
};
#endif