]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/base.h
Converted to new Implements system
[user/henk/code/inspircd.git] / include / base.h
index 13c361c0b20da080ce405e709b76a1ed48bdfbd4..ac03a748c56d59927ad237969f48a1936f3bbc8e 100644 (file)
@@ -20,6 +20,7 @@
 #include "inspircd_config.h" 
 #include <time.h>
 #include <map>
+#include <deque>
 #include <string>
 
 typedef void* VoidPointer;
@@ -86,10 +87,15 @@ 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);
-};
 
-const int bitfields[]          =       {1,2,4,8,16,32,64,128};
-const int inverted_bitfields[] =       {~1,~2,~4,~8,~16,~32,~64,~128};
+       /** 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.
  * Use BoolSet::Set and BoolSet::Get to set and get bools in the bitmask,