memento_pattern::Originator
-
class Originator
The Originator class creates and restores Memento objects.
Public Functions
-
inline void setState(const std::string &newState)
Sets the state of the Originator.
- Parameters:
newState – The new state.
-
inline std::string getState() const
Retrieves the current state of the Originator.
- Returns:
The current state as a string.
-
inline void setState(const std::string &newState)