-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChatroom.h
More file actions
37 lines (29 loc) · 957 Bytes
/
Copy pathChatroom.h
File metadata and controls
37 lines (29 loc) · 957 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
#include <vector>
#include <string>
#include "User.h"
#ifndef CHATROOM_H
#define CHATROOM_H
using namespace std;
class Chatroom
{
public:
//CONSTRUCTORS********************************************************************
Chatroom();
Chatroom(string mname);
//SETTERS*************************************************************************
void setName(string new_name);
//GETTERS*************************************************************************
string getName();
vector<User> getUsers();
//METHODS*************************************************************************
void addUser(User u);
bool removeUser(User u);
//OPERATORS***********************************************************************
bool operator==(Chatroom r);
bool operator!=(Chatroom r);
private:
//VARIABLES***********************************************************************
string name;
vector<User> usersInRoom;
};
#endif