summaryrefslogtreecommitdiff
path: root/include/hashcomp.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-06 14:23:37 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-06 14:23:37 +0000
commit364735e18b500f0a071fab4cc5c9e7bace1835fc (patch)
treeb5235b72d84aa823ea32512eb820840930f99184 /include/hashcomp.h
parenta519f21f44dbbaf30b90fe44a9a73f930d61c185 (diff)
Document a ton of classes (e.g. give them a short description for http://svn.inspircd.org/docs/annotated.html)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5434 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r--include/hashcomp.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index b22f65272..b2756b340 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -248,10 +248,8 @@ namespace irc
const std::string GetToken();
};
- /** irc::commasepstream allows for splitting comma seperated lists.
- * Lists passed to irc::commasepstream should not contain spaces
- * after the commas, or this will be taken to be part of the item
- * data. Each successive call to commasepstream::GetToken() returns
+ /** irc::sepstream allows for splitting token seperated lists.
+ * Each successive call to sepstream::GetToken() returns
* the next token, until none remain, at which point the method returns
* an empty string.
*/
@@ -263,7 +261,7 @@ namespace irc
std::string::iterator n;
char sep;
public:
- /** Create a commasepstream and fill it with the provided data
+ /** Create a sepstream and fill it with the provided data
*/
sepstream(const std::string &source, char seperator);
virtual ~sepstream();
@@ -274,6 +272,8 @@ namespace irc
virtual const std::string GetToken();
};
+ /** A derived form of sepstream, which seperates on commas
+ */
class commasepstream : public sepstream
{
public:
@@ -282,6 +282,8 @@ namespace irc
}
};
+ /** A derived form of sepstream, which seperates on spaces
+ */
class spacesepstream : public sepstream
{
public: