*/
typedef std::deque<WhoWasGroup*> whowas_set;
+namespace WhoWas
+{
+ /** Everything known about one nick
+ */
+ struct Nick
+ {
+ /** Container where each element has information about one occurrence of this nick
+ */
+ whowas_set entries;
+
+ /** Time this nick was added to the database
+ */
+ const time_t addtime;
+
+ /** Nickname whose information is stored in this class
+ */
+ const irc::string nick;
+
+ /** Constructor to initialize fields
+ */
+ Nick(const irc::string& nickname);
+
+ /** Destructor, deallocates all elements in the entries container
+ */
+ ~Nick();
+ };
+}
+
/** Sets of users in the whowas system
*/
-typedef std::map<irc::string,whowas_set*> whowas_users;
+typedef std::map<irc::string, WhoWas::Nick*> whowas_users;
/** Sets of time and users in whowas list
*/