BMA Server Framework
/home/barant/Development/BMA/server_core/ServerCore/CommandList.h
1 #ifndef __CommandList_h__
2 #define __CommandList_h__
3 
4 #include "Session.h"
5 #include "Command.h"
6 
7 namespace core {
8 
9  class CommandList : public Command {
10 
11  public:
12  CommandList();
13  ~CommandList();
14 
15  void add(Command &command, std::string name = "");
16 
17  void remove(Command &command);
18 
19  bool processRequest(std::string request, Session *session);
20 
21  int processCommand(std::string request, Session *session) override;
22 
23  private:
24  std::vector<Command *> commands;
25 
26  };
27 
28 }
29 
30 #endif
Definition: Command.cpp:4
Definition: Session.h:22
int processCommand(std::string request, Session *session) override
Definition: CommandList.cpp:33
Definition: Command.h:18
Definition: CommandList.h:9