Starting Channel class
This commit is contained in:
35
Channel/Channel.hpp
Normal file
35
Channel/Channel.hpp
Normal file
@@ -0,0 +1,35 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 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;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user