-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathChannel.hpp
More file actions
47 lines (38 loc) · 948 Bytes
/
Channel.hpp
File metadata and controls
47 lines (38 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
# include <map>
# include <list>
# include <string>
class User;
class Server;
class Channel
{
public:
typedef std::list<User *>::iterator iterator;
private:
std::string _name;
std::string _topic;
std::string _whoTopicNick;
std::string _whoTopicSetat;
int _chanusers;
Channel();
public:
// Constructors + Destructor
Channel(std::string &name);
~Channel();
Channel(const Channel & other);
Channel &operator=(const Channel &rhs);
// Functions
Channel *clone(void) const;
// Getters + Setters
std::string getName(void) const;
std::string getTopic(void) const;
std::string getWhoTopicNick(void) const;
std::string getWhoTopicSetat(void) const;
int getChanUsers() const;
void setTopic(std::string topic);
void setWhoTopicNick(std::string str);
void setWhoTopicSetat(std::string str);
void setChanUsers(int);
};
# include "User.hpp"
# include "Server.hpp"