My Project
CommandList.h
1 #ifndef __CommandList_h__
2 #define __CommandList_h__
3 
4 #include "TCPSession.h"
5 #include "Command.h"
6 #include "Log.h"
7 
8 namespace core {
9 
17 
18  class CommandList : public Command {
19 
20  public:
21 
25 
26  void add(Command &command, std::string name = "");
27 
28  void remove(Command &command);
29 
30  bool processRequest(std::string request, TCPSession *session, std::stringstream &data);
31 
32  int processCommand(std::string request, TCPSession *session, std::stringstream &data);
33 
34  protected:
35  std::vector<Command *> commands;
36 
37  };
38 
39 }
40 
41 #endif
Definition: Command.cpp:3
Definition: TCPSession.h:21
int processCommand(std::string request, TCPSession *session, std::stringstream &data)
Definition: CommandList.cpp:24
Definition: Command.h:19
Definition: CommandList.h:18
void add(Command &command, std::string name="")
Definition: CommandList.cpp:5