15 lines
327 B
C++
15 lines
327 B
C++
class Command
|
|
{
|
|
public:
|
|
Command(bool shouldTerminate, char nextChar, int nextArg, bool shouldPrint);
|
|
bool shouldTerminate() const;
|
|
char getNextChar();
|
|
int getNextArg();
|
|
bool shouldPrint() const;
|
|
|
|
private:
|
|
bool m_shouldTerminate;
|
|
char m_nextChar;
|
|
int m_nextArg;
|
|
bool m_shouldPrint;
|
|
}; |