mstoyanov7

CommandExecutor.h

Sep 12th, 2021
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #ifndef COMMANDEXECUTOR_H_
  2. #define COMMANDEXECUTOR_H_
  3.  
  4. #include <string>
  5. #include <vector>
  6.  
  7. #include "Defines.h"
  8.  
  9. #include "Store.h"
  10.  
  11. class CommandExecutor {
  12. public:
  13. void extractCommand(const std::string &commandStr);
  14.  
  15. private:
  16. void executeAddPs(int price, int quality, int generation);
  17.  
  18. void executeAddXbox(int price, int quality);
  19.  
  20. void executeRemove(ConsoleType consoleType);
  21.  
  22. void executeSortByPrice(ConsoleType consoleType);
  23.  
  24. void executeSortByQuality(ConsoleType consoleType);
  25.  
  26. void executePrint(ConsoleType consoleType);
  27.  
  28. Store _store;
  29. };
  30.  
  31. #endif /* COMMANDEXECUTOR_H_ */
  32.  
Advertisement
Add Comment
Please, Sign In to add comment