/* * SPDX-FileCopyrightText: 2018 Rerrah * SPDX-License-Identifier: MIT */ #pragma once #include #include #include "abstract_command.hpp" class CommandManager { public: using CommandIPtr = std::unique_ptr; bool invoke(CommandIPtr command); bool undo(); bool redo(); void clear(); private: std::deque undoStack_, redoStack_; };