Command.h
Go to the documentation of this file.
#ifndef __Command_h__
#define __Command_h__
#include "includes"
#include "Object.h"
#include "TCPSession.h"
#include "PString.h"
namespace core {
class CommandList;
class Session;
class Command : public Object {
public:
virtual bool check(std::string request);
virtual int processCommand(std::string request, TCPSession *session, std::stringstream &data);
virtual void output(Session *session);
void setName(std::string name);
std::string getName();
private:
std::string name;
};
}
#endif
core::Command::getName
std::string getName()
Definition: Command.cpp:25
core::Command::setName
void setName(std::string name)
Definition: Command.cpp:21
TCPSession.h
core::TCPSession
Definition: TCPSession.h:25
core
Definition: Command.cpp:5
core::Object
Definition: Object.h:8
core::Command
Definition: Command.h:22
core::Command::output
virtual void output(Session *session)
Definition: Command.cpp:11
core::Command::check
virtual bool check(std::string request)
Definition: Command.cpp:13
core::Command::processCommand
virtual int processCommand(std::string request, TCPSession *session, std::stringstream &data)
Definition: Command.cpp:7
Object.h