Files
Calculator/command.h
T

17 lines
341 B
C++

#pragma once
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;
};