-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathExecutor.hpp
More file actions
49 lines (40 loc) · 933 Bytes
/
Executor.hpp
File metadata and controls
49 lines (40 loc) · 933 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
48
49
#ifndef EXECUTOR_HPP
#define EXECUTOR_HPP
#include <vector>
#include <sstream>
#include <string>
#include "DataManager.hpp"
#define SERVER 0
#define CLIENT 1
class DataManager;
class Executor
{
private:
Client *_clnt;
std::vector<std::string> _params;
std::string _command;
DataManager *_data_manager;
void changeMode(Channel *chan);
int option_check(std::string option);
std::string makeSource(bool is_clnt);
public:
Executor(Client *clnt, DataManager *data_manager);
~Executor();
std::string getCommand();
std::string getParams(int i);
void passCommand(std::string password);
void nickCommand(std::string create_time);
void userCommand(std::string create_time);
void pingCommand();
void pongCommand();
void quitCommand();
void joinCommand();
void partCommand();
void inviteCommand();
void topicCommand();
void kickCommand();
void modeCommand();
void privmsgCommand();
void nonCommand();
};
#endif