originator.hh 250 B

123456789101112131415
  1. #ifndef ORIGINATOR_H
  2. #define ORIGINATOR_H
  3. #include "memento.hh"
  4. class Originator{
  5. std::string state;
  6. public:
  7. void setState(std::string);
  8. std::string getState();
  9. Memento* saveStateToMemento();
  10. void getStateFromMemento(Memento*);
  11. };
  12. #endif