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 
16 
17  class CommandList : public Command {
18 
19  public:
20 
24 
25  CommandList();
26 
30 
31  ~CommandList();
32 
36 
37  void add(Command &command, std::string name = "");
38 
39  void remove(Command &command);
40 
41  bool processRequest(std::string request, Session *session);
42 
43  int processCommand(std::string request, Session *session) override;
44 
45  private:
46  std::vector<Command *> commands;
47 
48  };
49 
50 }
51 
52 #endif
CommandList()
Definition: CommandList.cpp:5
Definition: Command.cpp:4
Definition: Session.h:22
~CommandList()
Definition: CommandList.cpp:7
int processCommand(std::string request, Session *session) override
Definition: CommandList.cpp:28
Definition: Command.h:18
Definition: CommandList.h:17
void add(Command &command, std::string name="")
Definition: CommandList.cpp:9