Files
irc/Channel/Channel.hpp
aortigos 94028a5215 part cmd
2026-04-19 01:47:20 +02:00

38 lines
1.3 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Channel.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/04/17 14:36:43 by aortigos #+# #+# */
/* Updated: 2026/04/17 14:36:43 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CHANNEL_HPP
# define CHANNEL_HPP
# include <iostream>
# include <vector>
class Channel
{
private:
std::string name;
std::vector<int> members;
public:
Channel();
Channel(std::string name);
~Channel();
std::string getName() const;
void addMember(int fd);
void removeMember(int fd);
std::vector<int> getMembers() const;
bool isMember(int fd) const;
};
#endif