summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-25 22:01:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-25 22:01:10 +0000
commit4e9f3d169285127e60dc9e0437925c90600bfe05 (patch)
tree1c815d53019e5daab20cf7b535cd5c048c6a29cf /include/base.h
parent325797e2c1013295538e978f9428c51e2bf0ce98 (diff)
Added parameters
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1522 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/base.h')
-rw-r--r--include/base.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/include/base.h b/include/base.h
index c959cf869..d253c5dc3 100644
--- a/include/base.h
+++ b/include/base.h
@@ -56,23 +56,34 @@ class Extensible : public classbase
public:
/** Extend an Extensible class.
+ *
+ * @param key The key parameter is an arbitary string which identifies the extension data
+ * @param p This parameter is a pointer to any data you wish to associate with the object
+ *
* You must provide a key to store the data as, and a void* to the data (typedef VoidPointer)
* The data will be inserted into the map. If the data already exists, you may not insert it
* twice, Extensible::Extend will return false in this case.
- * On successful extension, Extend returns true.
+ *
+ * @return Returns true on success, false if otherwise
*/
bool Extend(std::string key, char* p);
/** Shrink an Extensible class.
+ *
+ * @param key The key parameter is an arbitary string which identifies the extension data
+ *
* You must provide a key name. The given key name will be removed from the classes data. If
* you provide a nonexistent key (case is important) then the function will return false.
- * Returns true on success.
+ *
+ * @return Returns true on success.
*/
bool Shrink(std::string key);
/** Get an extension item.
- * 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.
+ *
+ * @param key The key parameter is an arbitary string which identifies the extension data
+ *
+ * @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);
};