Implementation of Serice object into structure.

This commit is contained in:
Brad Arant committed 2019-02-16 12:01:36 -08:00
1 parent a2526dd3ed
commit 2cb1e3e2f2
23 files changed
+278 -293

No files matched your search

+21 -21
View File
@@ -2,26 +2,26 @@
#include "Session.h"
namespace core {
void Command::output(Session *session) {}
bool Command::check(std::string request) {
if(request != "") {
if(name.length() > 0) {
size_t start = request.find_first_not_of(" ");
if(name == request.substr(start, name.length()))
return true;
}
return false;
}
}
void Command::setName(std::string name) {
this->name = name;
}
std::string Command::getName() {
return name;
}
bool Command::check(std::string request) {
if(request != "") {
if(name.length() > 0) {
size_t start = request.find_first_not_of(" ");
if(name == request.substr(start, name.length()))
return true;
}
return false;
}
}
void Command::setName(std::string name) {
this->name = name;
}
std::string Command::getName() {
return name;
}
}