#include "Command.h" #include "Log.h" #include "CommandList.h" namespace core { int Command::processCommand(coreutils::ZString request, TCPSession *session, std::stringstream &data) { return 0; } void Command::output(Session *session) {} bool Command::check(coreutils::ZString request) { if(request.getLength() > 0) if(request.getLength() == name.length()) if(strncmp(request.getData(), name.c_str(), name.length()) == 0) if(name.length() > 0) return true; return false; } void Command::setName(std::string name) { this->name = name; } std::string Command::getName() { return name; } }