Represents a single memento, a single snapshot of the state of the Memento_TextObject class as represented by the private class Memento_TextObject.Memento. More...
#include <Memento.h>
Public Types | |
using | shared_ptr_t = std::shared_ptr< IMemento > |
Alias to make working with a shared pointer easier to type. | |
Public Member Functions | |
virtual | ~IMemento () |
Virtual destructor. | |
virtual std::string | Name ()=0 |
The name of the memento (snapshot). Useful for displaying a list of mementos in an undo list. In this case, the name of each memento is the operation that triggered the creation of the memento. | |
Represents a single memento, a single snapshot of the state of the Memento_TextObject class as represented by the private class Memento_TextObject.Memento.
using shared_ptr_t = std::shared_ptr<IMemento> |
|
pure virtual |
The name of the memento (snapshot). Useful for displaying a list of mementos in an undo list. In this case, the name of each memento is the operation that triggered the creation of the memento.
Implemented in Memento_TextObject::Memento.
Referenced by Visitor_Shop::PickupOrder(), Visitor_Shop::PlaceOrder(), and EntryInformation::ToString().