input_controller.h 387 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <sstream>
  3. #include <unordered_map>
  4. using std::istream;
  5. using std::istringstream;
  6. using std::string;
  7. class input_controller {
  8. protected:
  9. istream *input;
  10. string line;
  11. istringstream stream;
  12. protected:
  13. input_controller();
  14. public:
  15. virtual ~input_controller();
  16. bool get_next_line();
  17. string get_command();
  18. istringstream *get_command_stream();
  19. };