ServerCore/Command.cpp
2020-06-11 18:54:51 -07:00

30 lines
575 B
C++

#include "Command.h"
#include "Log.h"
#include "CommandList.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;
}
}