# BMA Server Framework: /home/barant/Development/BMA/server_core/ServerCore/CommandList.h Source File

/home/barant/Development/BMA/server_core/ServerCore/CommandList.h
#ifndef __CommandList_h__
#define __CommandList_h__
#include "Session.h"
#include "Command.h"
namespace core {
class CommandList : public Command {
public:
CommandList();
~CommandList();
void add(Command &command, std::string name = "");
void remove(Command &command);
bool processRequest(std::string request, Session *session);
int processCommand(std::string request, Session *session) override;
private:
std::vector<Command *> commands;
};
}
#endif
core::CommandList::CommandList
CommandList()
Definition: CommandList.cpp:5
core
Definition: Command.cpp:4
core::Session
Definition: Session.h:22
core::CommandList::~CommandList
~CommandList()
Definition: CommandList.cpp:7
core::CommandList::processCommand
int processCommand(std::string request, Session *session) override
Definition: CommandList.cpp:28
core::Command
Definition: Command.h:18
core::CommandList
Definition: CommandList.h:17
core::CommandList::add
void add(Command &command, std::string name="")
Definition: CommandList.cpp:9