/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Channel.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: fgras-ca +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/15 12:41:35 by fgras-ca #+# #+# */ /* Updated: 2024/05/19 15:14:50 by fgras-ca ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef CHANNEL_HPP #define CHANNEL_HPP #include #include #include #include #include "RPL.hpp" class Client; class Channel { public: Channel(const std::string &name); ~Channel(); const std::string &getName() const; void addClient(Client *client); void removeClient(Client *client); bool isEmpty() const; const std::vector &getClients() const; void addOperator(Client *client); bool isOperator(Client *client) const; private: std::string _name; std::vector _clients; std::vector _operators; }; #endif