diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-11-02 16:05:55 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-11-02 16:05:55 +0100 |
commit | 7f580dbc0e529d200662e676119a3dcb966f67f9 (patch) | |
tree | 29ff01e32ac165987f09c429b9b7f3e03425dbe4 /src/libirc/irc_message.hpp | |
parent | 4027ef8c00ee2a5b808c11c7f3ae50cda117d92a (diff) | |
download | biboumi-7f580dbc0e529d200662e676119a3dcb966f67f9.tar.gz biboumi-7f580dbc0e529d200662e676119a3dcb966f67f9.tar.bz2 biboumi-7f580dbc0e529d200662e676119a3dcb966f67f9.tar.xz biboumi-7f580dbc0e529d200662e676119a3dcb966f67f9.zip |
Add irc_message.hpp
Diffstat (limited to 'src/libirc/irc_message.hpp')
-rw-r--r-- | src/libirc/irc_message.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/libirc/irc_message.hpp b/src/libirc/irc_message.hpp new file mode 100644 index 0000000..a0bd772 --- /dev/null +++ b/src/libirc/irc_message.hpp @@ -0,0 +1,28 @@ +#ifndef IRC_MESSAGE_INCLUDED +# define IRC_MESSAGE_INCLUDED + +#include <vector> +#include <string> +#include <ostream> + +class IrcMessage +{ +public: + explicit IrcMessage(std::string&& line); + explicit IrcMessage(std::string&& prefix, std::string&& command, std::vector<std::string>&& args); + explicit IrcMessage(std::string&& command, std::vector<std::string>&& args); + ~IrcMessage(); + + std::string prefix; + std::string command; + std::vector<std::string> arguments; + + IrcMessage(const IrcMessage&) = delete; + IrcMessage(IrcMessage&&) = delete; + IrcMessage& operator=(const IrcMessage&) = delete; + IrcMessage& operator=(IrcMessage&&) = delete; +}; + +std::ostream& operator<<(std::ostream& os, const IrcMessage& message); + +#endif // IRC_MESSAGE_INCLUDED |