#pragma once #include "Command.h" #include #include class HistoryManager { private: std::vector> history; long int cursor = -1; public: void Clear(); json GetEvents(); void Execute(std::unique_ptr command); void Undo(); void Redo(); bool CanUndo(); bool CanRedo(); };