summaryrefslogtreecommitdiff
path: root/src/irc/irc_message.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-03 00:22:32 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-03 00:22:32 +0100
commit87aaacdb420341bf3619922332d58b95249971bc (patch)
tree8f819241c8e78b23f5e2036c22ac637092e4293c /src/irc/irc_message.hpp
parente332d7a2c0900aec488ab508c3e9e389d2a71e32 (diff)
downloadbiboumi-87aaacdb420341bf3619922332d58b95249971bc.tar.gz
biboumi-87aaacdb420341bf3619922332d58b95249971bc.tar.bz2
biboumi-87aaacdb420341bf3619922332d58b95249971bc.tar.xz
biboumi-87aaacdb420341bf3619922332d58b95249971bc.zip
Rename libirc and libxmpp to irc and xmpp
Diffstat (limited to 'src/irc/irc_message.hpp')
-rw-r--r--src/irc/irc_message.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/irc/irc_message.hpp b/src/irc/irc_message.hpp
new file mode 100644
index 0000000..a0bd772
--- /dev/null
+++ b/src/irc/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