Public Types | Public Member Functions | Private Attributes

c_tracked_msg_to_server Class Reference

Contains a message to be sent to IRC server. More...

#include <c_tracked_msg_to_server.h>

Collaboration diagram for c_tracked_msg_to_server:

List of all members.

Public Types

enum  e_kind { PIECE_IGNORE, PIECE_NICK, PIECE_CHANNEL }

Public Member Functions

 c_tracked_msg_to_server (const string &first_piece)
 Adds first piece of message to the vector (not-adjustable, as it is always IRC protocol command).
 c_tracked_msg_to_server ()
 Dummy constructor to allow uninitialized construction.
c_tracked_msg_to_serveradd_channel (const string &channel)
 Adds next piece of command (adjustable: should be channel).
c_tracked_msg_to_serveradd_multi (const vector< pair< e_kind, string > > &pieces)
 Adds multiple pieces at once.
c_tracked_msg_to_serveradd_nick (const string &nick)
 Adds next piece of command (adjustable: should be nick).
c_tracked_msg_to_serveradd_piece (const string &piece)
 Adds next piece of command (not-adjustable).
bool empty ()
 Check whether we have message.
string get_msg () const
 Returns message including EOL sequence.
bool is_nick (const string &nick) const
 Checks whether argument is adjustable entry (nick).
bool operator== (const c_tracked_msg_to_server &right) const
bool process_nick_change (const string &old_nick, const string new_nick)
 Called if someone has changed nick, and, possibly adjust it in the vector if particular nick is related to this message.
bool process_nick_change_chan (const string &channel, const string &part_nick)
 Called if someone has part/quit/got kicked from channel, and, possibly removing it in the vector if particular nick is related to this message.

Private Attributes

vector< pair< e_kind, string > > m_pieces
 Message broken into pieces (.second: text to be adjusted according to .first).

Detailed Description

Contains a message to be sent to IRC server.

Author:
VooDooMan
Version:
2
Date:
2007-12-02, 2009-07-04

Definition at line 54 of file c_tracked_msg_to_server.h.


The documentation for this class was generated from the following files:

Generated on Sat Aug 7 2010 15:37:29 for VooDoo cIRCle by doxygen 1.7.1

Get VooDoo cIRCle at SourceForge.net. Fast, secure and Free Open Source software downloads