#pragma once #include "Memento.h" struct CanvasData { unsigned rows = 0; unsigned columns = 0; }; class CanvasDataMemento : public Memento { friend class Canvas; public: CanvasDataMemento(const CanvasData & data) : data(data) {} private: CanvasData data; };