/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* message.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/01/21 11:35:21 by maldavid #+# #+# */ /* Updated: 2024/01/21 12:04:43 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef __MESSAGE__ #define __MESSAGE__ #include #include namespace irc { class Message { public: Message(unstd::SharedPtr client, const std::string& msg); inline unstd::SharedPtr getClient() const { return _client; } inline const std::string& getRawMsg() const { return _raw_msg; } inline const std::string& getCmd() const { return _command; } ~Message(); private: const std::string _raw_msg; std::string _command; unstd::SharedPtr _client; }; } #endif