27 lines
464 B
C++
27 lines
464 B
C++
#include "command.h"
|
|
|
|
Command::Command(bool shouldTerminate, char nextChar, int nextArg, bool shouldPrint):
|
|
m_shouldTerminate{shouldTerminate}, m_nextChar{nextChar}, m_nextArg{nextArg}, m_shouldPrint{shouldPrint}
|
|
{
|
|
|
|
}
|
|
|
|
bool Command::shouldTerminate() const
|
|
{
|
|
return m_shouldTerminate;
|
|
}
|
|
|
|
char Command::getNextChar()
|
|
{
|
|
return m_nextChar;
|
|
}
|
|
|
|
int Command::getNextArg()
|
|
{
|
|
return m_nextArg;
|
|
}
|
|
|
|
bool Command::shouldPrint() const
|
|
{
|
|
return m_shouldPrint;
|
|
} |