IRC SERVER
The goal of this project is to make you write your own IRC server.
Message.hpp
Go to the documentation of this file.
1 #ifndef MESSAGE_H
2 #define MESSAGE_H
3 
4 // Our includes
5 #include "./Color.hpp"
6 #include "./functions.hpp"
7 
8 #include <cstring>
9 #include <iostream>
10 #include <map>
11 
12 class Message
13 {
14  public:
15  std::string _buffer;
16 
17  private:
18  std::string _cmd;
19  std::map<size_t, std::string> _params;
20 
21  public:
22  Message(std::string &buffer);
23  std::string getCmd(void) const;
24  std::map<size_t, std::string> getParams(void) const;
25 };
26 
27 #endif
Message::Message
Message(std::string &buffer)
Construct a new Message:: Message object.
Definition: message.cpp:46
Message::_buffer
std::string _buffer
Definition: Message.hpp:15
Message::getCmd
std::string getCmd(void) const
Definition: message.cpp:74
functions.hpp
Message::getParams
std::map< size_t, std::string > getParams(void) const
Definition: message.cpp:79
Message
Definition: Message.hpp:12
Color.hpp