]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/base.h
Apparently to catch descendent classes we need to catch a reference to the parent...
[user/henk/code/inspircd.git] / include / base.h
index cec519e5c1cb9e7beb21de32814218a8037e867a..5f7ac0ffbb13be41f395b9733414906d9cf90db6 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
  *                       E-mail:
  *                <brain@chatspike.net>
  *               <Craig@chatspike.net>
@@ -20,6 +20,7 @@
 #include "inspircd_config.h" 
 #include <time.h>
 #include <map>
+#include <deque>
 #include <string>
 
 typedef void* VoidPointer;
@@ -86,6 +87,14 @@ public:
         * @return If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned.
         */
        char* GetExt(std::string key);
+
+       /** Get a list of all extension items names.
+        *
+        * @param list A deque of strings to receive the list
+        *
+        * @return This function writes a list of all extension items stored in this object by name into the given deque and returns void.
+        */
+       void GetExtList(std::deque<std::string> &list);
 };
 
 /** BoolSet is a utility class designed to hold eight bools in a bitmask.