linearHistory.hh 389 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "config.h"
  3. #include "wrappedBuffer.hpp"
  4. class LinearHistory: public WrappedBuffer<char, ERROR_HISTORY_LEN>
  5. {
  6. public:
  7. LinearHistory();
  8. ~LinearHistory();
  9. unsigned int currentLine() const;
  10. void put(char item);
  11. void put(char item[], unsigned int count);
  12. private:
  13. bool willReset;
  14. unsigned int line;
  15. };