29 lines
548 B
C++
29 lines
548 B
C++
#include "Command.h"
|
|
#include "Log.h"
|
|
|
|
namespace core {
|
|
|
|
int Command::processCommand(std::string request, TCPSession *session, std::stringstream &data) {
|
|
return 0;
|
|
}
|
|
|
|
void Command::output(Session *session) {}
|
|
|
|
bool Command::check(std::string request) {
|
|
if(request.size() > 0)
|
|
if(request == name)
|
|
if(name.length() > 0)
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
void Command::setName(std::string name) {
|
|
this->name = name;
|
|
}
|
|
|
|
std::string Command::getName() {
|
|
return name;
|
|
}
|
|
|
|
}
|