-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandEntity.cpp
More file actions
44 lines (34 loc) · 1008 Bytes
/
Copy pathCommandEntity.cpp
File metadata and controls
44 lines (34 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "CommandEntity.h"
#include<string>
CommandEntity::CommandEntity(int commandId, std::string commandName, std::string commandDescription, CommandEntity* next) {
this->commandId = commandId;
this->commandName = commandName;
this->commandDescription = commandDescription;
this->next = next;
}
CommandEntity::CommandEntity() {
}
std::string CommandEntity::getCommandName() {
return this->commandName;
}
std::string CommandEntity::getCommandDescription() {
return this->commandDescription;
}
int CommandEntity::getCommandId() {
return this->commandId;
}
CommandEntity* CommandEntity::getNext() {
return this->next;
}
void CommandEntity::setCommandName(std::string commandName) {
this->commandName = commandName;
}
void CommandEntity::setCommandDescription(std::string commandDescription) {
this->commandDescription= commandDescription;
}
void CommandEntity::setCommandId(int newId) {
this->commandId = newId;
}
void CommandEntity::setNext(CommandEntity* next) {
this->next = next;
}