Debian Codegraph @

BambooTracker/command/order/clone_order_command.hpp

raw
1 /*
2 * SPDX-FileCopyrightText: 2018 Rerrah
3 * SPDX-License-Identifier: MIT
4 */
5
6 #pragma once
7
8 #include <memory>
9 #include <vector>
10 #include "../abstract_command.hpp"
11 #include "module.hpp"
12
13 class CloneOrderCommand final : public AbstractCommand
14 {
15 public:
16 CloneOrderCommand(std::weak_ptr<Module> mod, int songNum, int orderNum);
17 bool redo() override;
18 bool undo() override;
19
20 private:
21 std::weak_ptr<Module> mod_;
22 int song_, order_;
23 std::vector<OrderInfo> prevOdr_;
24 };