CommandList.h
Go to the documentation of this file.
#ifndef __CommandList_h__
#define __CommandList_h__
#include "TCPSession.h"
#include "Command.h"
#include "Log.h"
namespace core {
class CommandList : public Command {
public:
void add(Command &command, std::string name = "");
void remove(Command &command);
bool processRequest(std::string request, TCPSession *session, std::stringstream &data);
bool grabInput(TCPSession *session, Command &command);
void clearGrab(TCPSession *session);
int processCommand(std::string request, TCPSession *session, std::stringstream &data);
protected:
std::vector<Command *> commands;
};
}
#endif
core::CommandList::processCommand
int processCommand(std::string request, TCPSession *session, std::stringstream &data)
Definition: CommandList.cpp:37
TCPSession.h
core::TCPSession
Definition: TCPSession.h:25
core
Definition: Command.cpp:5
core::CommandList::commands
std::vector< Command * > commands
Definition: CommandList.h:69
core::CommandList::clearGrab
void clearGrab(TCPSession *session)
Definition: CommandList.cpp:33
core::Command
Definition: Command.h:22
core::CommandList::add
void add(Command &command, std::string name="")
Definition: CommandList.cpp:6
core::CommandList
Definition: CommandList.h:18
core::CommandList::remove
void remove(Command &command)
Definition: CommandList.cpp:11
Command.h
core::CommandList::grabInput
bool grabInput(TCPSession *session, Command &command)
Definition: CommandList.cpp:28
core::CommandList::processRequest
bool processRequest(std::string request, TCPSession *session, std::stringstream &data)
Definition: CommandList.cpp:15