Initial commit
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user